public void showBalance(CommandSender to) {
if(to != null) {
String tag = iConomy.Template.raw(Template.Node.TAG_MONEY);
Template template = iConomy.Template;
template.set(Template.Node.PLAYER_BALANCE);
template.add("name", name);
template.add("balance", toString());
Messaging.send(to, tag + template.parse());
return;
}
Player player = iConomy.Server.getPlayer(name);
String tag = iConomy.Template.color(Template.Node.TAG_MONEY);
if(iConomy.Server.getPlayer(name) == null)
return;
Template template = iConomy.Template;
template.set(Template.Node.PERSONAL_BALANCE);
template.add("balance", toString());
Messaging.send(player, tag + template.parse());
}