diff --git a/src/com/massivecraft/factions/Perm.java b/src/com/massivecraft/factions/Perm.java index 45c8795a..19583f83 100644 --- a/src/com/massivecraft/factions/Perm.java +++ b/src/com/massivecraft/factions/Perm.java @@ -110,14 +110,14 @@ public enum Perm implements Identified // HAS // -------------------------------------------- // - public boolean has(Permissible permissible, boolean informSenderIfNot) + public boolean has(Permissible permissible, boolean verboose) { - return PermissionUtil.hasPermission(permissible, this.id, informSenderIfNot); + return PermissionUtil.hasPermission(permissible, this, verboose); } public boolean has(Permissible permissible) { - return has(permissible, false); + return PermissionUtil.hasPermission(permissible, this); } } diff --git a/src/com/massivecraft/factions/entity/MPlayer.java b/src/com/massivecraft/factions/entity/MPlayer.java index 12b2c315..a12ffa0d 100644 --- a/src/com/massivecraft/factions/entity/MPlayer.java +++ b/src/com/massivecraft/factions/entity/MPlayer.java @@ -544,8 +544,7 @@ public class MPlayer extends SenderEntity implements EconomyParticipato if (this.overriding == null) return false; if (this.overriding == false) return false; - // Deactivate admin mode if we don't have permissions for it. - if (this.getSender() != null && ! Perm.OVERRIDE.has(this.getSender(), false)) + if (!this.hasPermission(Perm.OVERRIDE, true)) { this.setOverriding(false); return false;