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(); 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")) { if (JavaPlugin.getPlugin(Main.class).getConfig().getBoolean("opOnJoin")) {
player.setOp(true); player.setOp(true);
} }

View file

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