From 7a119facdfac988ffe32f7b54e5043fa6fac5057 Mon Sep 17 00:00:00 2001 From: nossr50 Date: Sat, 7 Apr 2012 13:38:10 -0700 Subject: [PATCH] Not entirely sure why passing a String instead of an int fixes this.. --- Changelog.txt | 1 + .../java/com/gmail/nossr50/commands/general/McstatsCommand.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog.txt b/Changelog.txt index 95e2fbdc8..7d1f4acde 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -10,6 +10,7 @@ Key: Version 1.3.06-dev + Added permissions check to skill functions + Added API functions for obtaining offline profiles & profiles via player names + = Fixed bug where {0} would be displayed in front of your power level in mcstats = Fixed mmoupdate not being useable from console = Fixed bug with repairing wooden tools ! Changed mcremove to no longer kick players when they are removed from database diff --git a/src/main/java/com/gmail/nossr50/commands/general/McstatsCommand.java b/src/main/java/com/gmail/nossr50/commands/general/McstatsCommand.java index 8127a7dd7..070a5b933 100644 --- a/src/main/java/com/gmail/nossr50/commands/general/McstatsCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/general/McstatsCommand.java @@ -28,7 +28,7 @@ public class McstatsCommand implements CommandExecutor { CommandHelper.printCombatSkills(player); CommandHelper.printMiscSkills(player); - player.sendMessage(mcLocale.getString("mcPlayerListener.PowerLevel", new Object[] { PP.getPowerLevel() })); + player.sendMessage(mcLocale.getString("mcPlayerListener.PowerLevel", new Object[] { String.valueOf(PP.getPowerLevel()) })); return true; }