SteamWar/BungeeCore
Archiviert
13
2

Fix missing return
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

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": case "test":
testarena(p, args); testarena(p, args);
break; break;
case "lock": case "lock":
if(args.length < 2) { if(args.length < 2) {
Message.send("BAU_LOCKED_OPTIONS", p); Message.send("BAU_LOCKED_OPTIONS", p);
@ -91,11 +90,9 @@ public class BauCommand extends BasicCommand {
setLocked(SteamwarUser.get(p), args[1]); setLocked(SteamwarUser.get(p), args[1]);
break; break;
case "unlock": case "unlock":
setLocked(SteamwarUser.get(p), "open"); setLocked(SteamwarUser.get(p), "open");
break; break;
default: default:
HelpCommand.sendBauHelp(ChatSender.of(p)); HelpCommand.sendBauHelp(ChatSender.of(p));
} }
@ -136,13 +133,13 @@ public class BauCommand extends BasicCommand {
} }
SteamwarUser worldOwner = SteamwarUser.get(args[1]); SteamwarUser worldOwner = SteamwarUser.get(args[1]);
if (worldOwner == null) { if (worldOwner == null) {
Message.send("UNKNOWN_PLAYER", p); Message.send("UNKNOWN_PLAYER", p);
return; return;
}else if (!p.getUniqueId().equals(worldOwner.getUuid()) && BauweltMember.getBauMember(worldOwner.getUuid(), p.getUniqueId()) == null){ }else if (!p.getUniqueId().equals(worldOwner.getUuid()) && BauweltMember.getBauMember(worldOwner.getUuid(), p.getUniqueId()) == null){
SubserverSystem.sendDeniedMessage(p, worldOwner.getUuid()); SubserverSystem.sendDeniedMessage(p, worldOwner.getUuid());
Message.send("BAU_TP_NOALLOWED", p); Message.send("BAU_TP_NOALLOWED", p);
return;
} }
if(isLocked(worldOwner, SteamwarUser.get(p))) { if(isLocked(worldOwner, SteamwarUser.get(p))) {