Add TL file. Use CommandExecutor to properly handle commands instead of using the preprocess listener and breaking other plugins.

This commit is contained in:
drtshock
2014-07-01 13:19:36 -05:00
parent 753c32785d
commit cd65375bd9
8 changed files with 195 additions and 32 deletions

View File

@@ -652,16 +652,9 @@ public class Faction extends Entity implements EconomyParticipator {
public boolean playerHasOwnershipRights(FPlayer fplayer, FLocation loc) {
// in own faction, with sufficient role or permission to bypass ownership?
if
(
fplayer.getFaction() == this
&&
(
fplayer.getRole().isAtLeast(Conf.ownedAreaModeratorsBypass ? Role.MODERATOR : Role.ADMIN)
||
Permission.OWNERSHIP_BYPASS.has(fplayer.getPlayer())
)
) {
if (fplayer.getFaction() == this
&& (fplayer.getRole().isAtLeast(Conf.ownedAreaModeratorsBypass ? Role.MODERATOR : Role.ADMIN)
|| Permission.OWNERSHIP_BYPASS.has(fplayer.getPlayer()))) {
return true;
}