Skip to content

Commit

Permalink
fix config paths in module
Browse files Browse the repository at this point in the history
  • Loading branch information
xGinko committed Aug 4, 2024
1 parent 36eb5cf commit a002900
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,21 @@ public InventoryLag() {
config.getLong(configPath + ".data-timeframe-millis", 20000,
"The time in millis in which to check if the player exceeded the limit.\n" +
"Needs to be at least as long as your cooldown millis.")))).build();
this.rateLimitBytes = config.getLong(configPath + "rate-limit.bytesize-limit", 3584000,
this.rateLimitBytes = config.getLong(configPath + ".rate-limit.bytesize-limit", 3584000,
"The limit in bytes the server has sent the server in the form of ItemStacks,\n" +
"before the player will be put on a rate-limit.\n" +
"Should always be lower than lockout bytesize limit.");
this.screenOpenDelay = config.getInt(configPath + "rate-limit.timeframe-millis", 1500,
this.screenOpenDelay = config.getInt(configPath + ".rate-limit.timeframe-millis", 1500,
"The time in millis in which a player is allowed to open x amounts of windows\n" +
"but not more.");
this.screenOpenLimit = config.getInt(configPath + "rate-limit.max-window-opens-per-timeframe", 2,
this.screenOpenLimit = config.getInt(configPath + ".rate-limit.max-window-opens-per-timeframe", 2,
"The amount of windows that can be opened during the timeframe-millis.");
this.lockoutBytes = config.getLong(configPath + ".lockout.bytesize-limit", 5120000,
"The upper limit in bytes a player is allowed to request from the server\n" +
"within the configured timeframe before he will be put on cooldown.\n" +
"During the cooldown, he will not be able to open any inventory screens\n" +
"or interact with items.");
this.lockoutMillis = config.getLong(configPath + "lockout.duration-millis", 15000,
this.lockoutMillis = config.getLong(configPath + ".lockout.duration-millis", 15000,
"The time in milliseconds the player will have to wait before\n" +
"being able to open an inventory again after he exceeded the limit.");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,21 @@ public InventoryLag() {
config.getLong(configPath + ".data-timeframe-millis", 20000,
"The time in millis in which to check if the player exceeded the limit.\n" +
"Needs to be at least as long as your cooldown millis.")))).build();
this.rateLimitBytes = config.getLong(configPath + "rate-limit.bytesize-limit", 3584000,
this.rateLimitBytes = config.getLong(configPath + ".rate-limit.bytesize-limit", 3584000,
"The limit in bytes the server has sent the server in the form of ItemStacks,\n" +
"before the player will be put on a rate-limit.\n" +
"Should always be lower than lockout bytesize limit.");
this.screenOpenDelay = config.getInt(configPath + "rate-limit.timeframe-millis", 1500,
this.screenOpenDelay = config.getInt(configPath + ".rate-limit.timeframe-millis", 1500,
"The time in millis in which a player is allowed to open x amounts of windows\n" +
"but not more.");
this.screenOpenLimit = config.getInt(configPath + "rate-limit.max-window-opens-per-timeframe", 2,
this.screenOpenLimit = config.getInt(configPath + ".rate-limit.max-window-opens-per-timeframe", 2,
"The amount of windows that can be opened during the timeframe-millis.");
this.lockoutBytes = config.getLong(configPath + ".lockout.bytesize-limit", 5120000,
"The upper limit in bytes a player is allowed to request from the server\n" +
"within the configured timeframe before he will be put on cooldown.\n" +
"During the cooldown, he will not be able to open any inventory screens\n" +
"or interact with items.");
this.lockoutMillis = config.getLong(configPath + "lockout.duration-millis", 15000,
this.lockoutMillis = config.getLong(configPath + ".lockout.duration-millis", 15000,
"The time in milliseconds the player will have to wait before\n" +
"being able to open an inventory again after he exceeded the limit.");
}
Expand Down

0 comments on commit a002900

Please sign in to comment.