Remove safezone requirement for observer mode
This commit is contained in:
parent
e5a96e8189
commit
5fca64b86b
@ -166,21 +166,6 @@ public class ObserverManager extends MiniPlugin
|
||||
|
||||
public boolean canEnterObserverMode(Player player, boolean notify)
|
||||
{
|
||||
if (_clansManager.getClientManager().hasRank(player, Rank.CMOD))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
ClanTerritory territory = _clansManager.getClanUtility().getClaim(player.getLocation());
|
||||
|
||||
if (territory == null || !territory.isSafe(player.getLocation()))
|
||||
{
|
||||
if (notify)
|
||||
UtilPlayer.message(player, F.main("Observer", "You must be in a Safe Zone to use observer mode!"));
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user