mirror of
https://github.com/kaboomserver/extras.git
synced 2024-11-27 09:55:36 -05:00
Push latest files
This commit is contained in:
parent
95a0b66af2
commit
ca17239065
2 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
# Player connection
|
# Player connection
|
||||||
|
allowJoinOnFullServer: true
|
||||||
enableKick: false
|
enableKick: false
|
||||||
enableJoinRestrictions: false
|
enableJoinRestrictions: false
|
||||||
opOnJoin: true
|
opOnJoin: true
|
||||||
|
|
Loading…
Reference in a new issue