BauLock2 #432
@ -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))) {
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren