Dieser Commit ist enthalten in:
Ursprung
fe0d0eaffb
Commit
9a5b938fba
@ -147,9 +147,7 @@ public class BauCommand extends BasicCommand {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ((!p.getUniqueId().equals(worldOwner.getUuid()) && BauweltMember.getBauMember(worldOwner.getUuid(), p.getUniqueId()) == null)){
|
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,
|
versionSelector(p, args, 2,
|
||||||
@ -336,8 +334,10 @@ public class BauCommand extends BasicCommand {
|
|||||||
if(activeLockState == null)
|
if(activeLockState == null)
|
||||||
activeLockState = BauLockState.OPEN;
|
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());
|
SubserverSystem.sendDeniedMessage(target.getPlayer(), owner.getUuid());
|
||||||
|
Message.send("BAU_TP_NOALLOWED", target.getPlayer());
|
||||||
|
}
|
||||||
|
|
||||||
return activeLockState == BauLockState.NOBODY || (activeLockState == BauLockState.TEAM && owner.getTeam() == target.getTeam());
|
return activeLockState == BauLockState.NOBODY || (activeLockState == BauLockState.TEAM && owner.getTeam() == target.getTeam());
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren