diff --git a/src/de/steamwar/bungeecore/commands/BauCommand.java b/src/de/steamwar/bungeecore/commands/BauCommand.java index 43ad0bd..98af453 100644 --- a/src/de/steamwar/bungeecore/commands/BauCommand.java +++ b/src/de/steamwar/bungeecore/commands/BauCommand.java @@ -82,7 +82,6 @@ public class BauCommand extends BasicCommand { case "test": testarena(p, args); break; - case "lock": if(args.length < 2) { Message.send("BAU_LOCKED_OPTIONS", p); @@ -91,11 +90,9 @@ public class BauCommand extends BasicCommand { setLocked(SteamwarUser.get(p), args[1]); break; - case "unlock": setLocked(SteamwarUser.get(p), "open"); break; - default: HelpCommand.sendBauHelp(ChatSender.of(p)); } @@ -136,13 +133,13 @@ public class BauCommand extends BasicCommand { } SteamwarUser worldOwner = SteamwarUser.get(args[1]); - if (worldOwner == null) { Message.send("UNKNOWN_PLAYER", p); return; }else if (!p.getUniqueId().equals(worldOwner.getUuid()) && BauweltMember.getBauMember(worldOwner.getUuid(), p.getUniqueId()) == null){ SubserverSystem.sendDeniedMessage(p, worldOwner.getUuid()); Message.send("BAU_TP_NOALLOWED", p); + return; } if(isLocked(worldOwner, SteamwarUser.get(p))) {