forked from SteamWar/SteamWar
Format code
This commit is contained in:
@@ -53,17 +53,17 @@ public class ModifyCommand extends SWCommand implements Listener {
|
||||
@Register
|
||||
public void modify(Player player) {
|
||||
SteamwarUser user = SteamwarUser.get(player.getUniqueId());
|
||||
if(!user.hasPerm(UserPerm.ADMINISTRATION)) {
|
||||
if (!user.hasPerm(UserPerm.ADMINISTRATION)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if(modifying(player)) {
|
||||
if (modifying(player)) {
|
||||
modifying.remove(player);
|
||||
LobbySystem.getEntityServer(true).removePlayer(player);
|
||||
player.setGameMode(GameMode.ADVENTURE);
|
||||
player.setOp(false);
|
||||
PlayerSpawn.giveItems(player);
|
||||
}else {
|
||||
} else {
|
||||
modifying.add(player);
|
||||
LobbySystem.getEntityServer(true).addPlayer(player);
|
||||
player.setGameMode(GameMode.CREATIVE);
|
||||
@@ -82,9 +82,9 @@ public class ModifyCommand extends SWCommand implements Listener {
|
||||
@Register("waitinghallspawn")
|
||||
public void setWaitingHallSpawn(Player player) {
|
||||
SteamwarUser user = SteamwarUser.get(player.getUniqueId());
|
||||
if(!user.hasPerm(UserPerm.ADMINISTRATION))
|
||||
if (!user.hasPerm(UserPerm.ADMINISTRATION))
|
||||
return;
|
||||
|
||||
|
||||
LobbySystem.config().setWaitingHallSpawn(player.getLocation());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user