Some reformat
This commit is contained in:
@@ -26,12 +26,14 @@ public class CmdPower extends FCommand {
|
||||
@Override
|
||||
public void perform() {
|
||||
FPlayer target = this.argAsBestFPlayerMatch(0, fme);
|
||||
if (target == null) return;
|
||||
if (target == null) { return; }
|
||||
|
||||
if (target != fme && !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;
|
||||
if (!payForCommand(Conf.econCostPower, "to show player power info", "for showing player power info")) {
|
||||
return;
|
||||
}
|
||||
|
||||
double powerBoost = target.getPowerBoost();
|
||||
String boost = (powerBoost == 0.0) ? "" : (powerBoost > 0.0 ? " (bonus: " : " (penalty: ") + powerBoost + ")";
|
||||
|
||||
Reference in New Issue
Block a user