From dcee1f52329cf703f142f8fd23e6e74df2a5a671 Mon Sep 17 00:00:00 2001 From: Brettflan Date: Fri, 6 Apr 2012 13:23:05 -0500 Subject: [PATCH] fix for /f power command used on self incorrectly also requiring factions.power.any permission --- src/com/massivecraft/factions/cmd/CmdPower.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/massivecraft/factions/cmd/CmdPower.java b/src/com/massivecraft/factions/cmd/CmdPower.java index 98bbdd9b..c4c2998b 100644 --- a/src/com/massivecraft/factions/cmd/CmdPower.java +++ b/src/com/massivecraft/factions/cmd/CmdPower.java @@ -31,7 +31,7 @@ public class CmdPower extends FCommand FPlayer target = this.argAsBestFPlayerMatch(0, fme); if (target == null) return; - if (target != me && ! Permission.POWER_ANY.has(sender, true)) return; + if (target != fme && ! Permission.POWER_ANY.has(sender, true)) return; // if economy is enabled, they're not on the bypass list, and this command has a cost set, make 'em pay if ( ! payForCommand(Conf.econCostPower, "to show player power info", "for showing player power info")) return;