mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-24 11:38:29 +01:00
Adding the option to suppress overload warnings as a bukkit.yml option. Thanks oloflarsson for the PR.
This commit is contained in:
parent
25050e38eb
commit
d7cec38c38
@ -412,6 +412,7 @@ public class MinecraftServer implements Runnable, ICommandListener, IMinecraftSe
|
||||
long l = k - i;
|
||||
|
||||
if (l > 2000L) {
|
||||
if (this.server.getWarnOnOverload()) // CraftBukkit - Adding an option to suppress these warning messages
|
||||
log.warning("Can\'t keep up! Did the system time change, or is the server overloaded?");
|
||||
l = 2000L;
|
||||
}
|
||||
|
@ -321,6 +321,10 @@ public final class CraftServer implements Server {
|
||||
return this.getConfigBoolean("allow-nether", true);
|
||||
}
|
||||
|
||||
public boolean getWarnOnOverload() {
|
||||
return this.configuration.getBoolean("settings.warn-on-overload");
|
||||
}
|
||||
|
||||
public boolean hasWhitelist() {
|
||||
return this.getConfigBoolean("white-list", false);
|
||||
}
|
||||
|
@ -15,6 +15,7 @@
|
||||
|
||||
settings:
|
||||
allow-end: true
|
||||
warn-on-overload: true
|
||||
spawn-radius: 16
|
||||
permissions-file: permissions.yml
|
||||
update-folder: update
|
||||
|
Loading…
Reference in New Issue
Block a user