split server #2
This commit is contained in:
parent
3ab017888b
commit
8f8abfa0d3
11 changed files with 419 additions and 44 deletions
|
@ -16,8 +16,8 @@ public class CommandRevoke extends Command {
|
|||
public void exec(CommandEnvironment env, Executor exec, Player player) {
|
||||
if(exec instanceof Player)
|
||||
throw new RunException("Dieser Befehl kann nur der Konsole ausgeführt werden");
|
||||
else if(player == exec)
|
||||
throw new RunException("Du kannst nicht deinen eigenen Admin-Status entfernen");
|
||||
// else if(player == exec)
|
||||
// throw new RunException("Du kannst nicht deinen eigenen Admin-Status entfernen");
|
||||
else if(!player.getAdmin())
|
||||
throw new RunException("%s ist kein Admin", player.getUser());
|
||||
player.setAdmin(false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue