Push latest files

This commit is contained in:
mathiascode 2019-12-03 13:27:06 +02:00
parent 95a0b66af2
commit ca17239065
2 changed files with 6 additions and 0 deletions

View file

@ -89,6 +89,11 @@ class PlayerConnection implements Listener {
event.allow();
}
if (event.getResult() == Result.KICK_FULL &&
JavaPlugin.getPlugin(Main.class).getConfig().getBoolean("allowJoinOnFullServer")) {
event.allow();
}
if (JavaPlugin.getPlugin(Main.class).getConfig().getBoolean("opOnJoin")) {
player.setOp(true);
}

View file

@ -1,4 +1,5 @@
# Player connection
allowJoinOnFullServer: true
enableKick: false
enableJoinRestrictions: false
opOnJoin: true