From 190c2d793f7abd0bf76e83da49543e7c260ffa0d Mon Sep 17 00:00:00 2001 From: eueln Date: Wed, 24 Dec 2014 04:15:16 -0600 Subject: [PATCH] Use rounded value to match format in /f powerboost --- .../java/com/massivecraft/factions/cmd/CmdPowerBoost.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/massivecraft/factions/cmd/CmdPowerBoost.java b/src/main/java/com/massivecraft/factions/cmd/CmdPowerBoost.java index baf18073..9782cc24 100644 --- a/src/main/java/com/massivecraft/factions/cmd/CmdPowerBoost.java +++ b/src/main/java/com/massivecraft/factions/cmd/CmdPowerBoost.java @@ -61,9 +61,10 @@ public class CmdPowerBoost extends FCommand { 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) { - P.p.log(TL.COMMAND_POWERBOOST_BOOSTLOG.toString(), fme.getName(), target, targetPower); + P.p.log(TL.COMMAND_POWERBOOST_BOOSTLOG.toString(), fme.getName(), target, roundedPower); } } }