Implement spawn-on-join configuration.

Admins can now specify whether all joining players should be teleported to the user's group spawn when joining the server. Players can be assigned the essentials.spawn-on-join.exempt permission to become exempt from this feature.
This commit is contained in:
Ali Moghnieh 2016-06-19 21:07:45 +01:00
parent a267fb16b8
commit b673630a7e
5 changed files with 34 additions and 2 deletions

View file

@ -1163,4 +1163,9 @@ public class Settings implements net.ess3.api.ISettings {
public boolean isWorldTimePermissions() {
return config.getBoolean("world-time-permissions", false);
}
@Override
public boolean isSpawnOnJoin() {
return config.getBoolean("spawn-on-join", false);
}
}