Archiviert
1
0

Fix missing return

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2022-09-11 18:11:58 +02:00
Ursprung e83b399593
Commit 29a30ec5bb

Datei anzeigen

@ -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))) {