Update [balance] sign to use currency formatting.

This commit is contained in:
KHobbits 2012-03-25 14:26:08 +01:00
parent c588b78adb
commit 00033c11bc

View File

@ -3,6 +3,7 @@ package com.earth2me.essentials.signs;
import static com.earth2me.essentials.I18n._;
import com.earth2me.essentials.IEssentials;
import com.earth2me.essentials.User;
import com.earth2me.essentials.Util;
public class SignBalance extends EssentialsSign
@ -15,7 +16,7 @@ public class SignBalance extends EssentialsSign
@Override
protected boolean onSignInteract(final ISign sign, final User player, final String username, final IEssentials ess) throws SignException
{
player.sendMessage(_("balance", player.getMoney()));
player.sendMessage(_("balance", Util.displayCurrency(player.getMoney(), ess)));
return true;
}
}