fix for /f power command used on self incorrectly also requiring factions.power.any permission
This commit is contained in:
parent
e71a09b6e2
commit
dcee1f5232
@ -31,7 +31,7 @@ public class CmdPower extends FCommand
|
|||||||
FPlayer target = this.argAsBestFPlayerMatch(0, fme);
|
FPlayer target = this.argAsBestFPlayerMatch(0, fme);
|
||||||
if (target == null) return;
|
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 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;
|
if ( ! payForCommand(Conf.econCostPower, "to show player power info", "for showing player power info")) return;
|
||||||
|
Loading…
Reference in New Issue
Block a user