Change permission checking in preparation for permission rework
This commit is contained in:
1 parent
f347c1058a
commit
0efccf335c
4 files changed
+69
-45
No files matched your search
@@ -170,8 +170,7 @@ public class EngineChunkChange extends Engine
|
||||
MPerm claimnear = MPerm.getPermClaimnear();
|
||||
for (Faction nearbyFaction : nearbyFactions)
|
||||
{
|
||||
if (claimnear.has(newFaction, nearbyFaction)) continue;
|
||||
mplayer.message(claimnear.createDeniedMessage(mplayer, nearbyFaction));
|
||||
if (claimnear.has(mplayer, nearbyFaction, true)) continue;
|
||||
event.setCancelled(true);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user