SteamWar/BungeeCore
Archiviert
13
2

+Fixed Owner message when locked
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
MoBrot 2022-09-08 21:28:21 +02:00
Ursprung fe0d0eaffb
Commit 9a5b938fba

Datei anzeigen

@ -147,9 +147,7 @@ public class BauCommand extends BasicCommand {
}
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;
}
versionSelector(p, args, 2,
@ -336,8 +334,10 @@ public class BauCommand extends BasicCommand {
if(activeLockState == null)
activeLockState = BauLockState.OPEN;
if(activeLockState == BauLockState.TEAM)
if((!target.getUuid().equals(owner.getUuid()) && BauweltMember.getBauMember(owner.getId(), target.getId()) == null) && !(activeLockState == BauLockState.NOBODY)) {
SubserverSystem.sendDeniedMessage(target.getPlayer(), owner.getUuid());
Message.send("BAU_TP_NOALLOWED", target.getPlayer());
}
return activeLockState == BauLockState.NOBODY || (activeLockState == BauLockState.TEAM && owner.getTeam() == target.getTeam());
}