Use rounded value to match format in /f powerboost

This commit is contained in:
eueln 2014-12-24 04:15:16 -06:00
parent 0cec1f5ec3
commit 190c2d793f

View File

@ -61,9 +61,10 @@ public class CmdPowerBoost extends FCommand {
target = TL.COMMAND_POWERBOOST_FACTION.format(targetFaction.getTag()); target = TL.COMMAND_POWERBOOST_FACTION.format(targetFaction.getTag());
} }
msg(TL.COMMAND_POWERBOOST_BOOST, target, targetPower); int roundedPower = (int)Math.round(targetPower);
msg(TL.COMMAND_POWERBOOST_BOOST, target, roundedPower);
if (!senderIsConsole) { if (!senderIsConsole) {
P.p.log(TL.COMMAND_POWERBOOST_BOOSTLOG.toString(), fme.getName(), target, targetPower); P.p.log(TL.COMMAND_POWERBOOST_BOOSTLOG.toString(), fme.getName(), target, roundedPower);
} }
} }
} }