mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-11-27 20:59:16 +01:00
Use rounded value to match format in /f powerboost
This commit is contained in:
parent
0cec1f5ec3
commit
190c2d793f
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user