Quick fix in BalanceCommand and fix loading of EconomyAdminCommand

This commit is contained in:
AppleDash 2016-06-14 05:54:18 -04:00
parent e5c069be5d
commit 7ccc672f5d
2 changed files with 3 additions and 4 deletions

View File

@ -2,6 +2,7 @@ package org.appledash.saneeconomy;
import org.appledash.saneeconomy.command.SaneEconomyCommand; import org.appledash.saneeconomy.command.SaneEconomyCommand;
import org.appledash.saneeconomy.command.type.BalanceCommand; import org.appledash.saneeconomy.command.type.BalanceCommand;
import org.appledash.saneeconomy.command.type.EconomyAdminCommand;
import org.appledash.saneeconomy.command.type.PayCommand; import org.appledash.saneeconomy.command.type.PayCommand;
import org.appledash.saneeconomy.economy.Currency; import org.appledash.saneeconomy.economy.Currency;
import org.appledash.saneeconomy.economy.EconomyManager; import org.appledash.saneeconomy.economy.EconomyManager;
@ -25,7 +26,7 @@ public class SaneEconomy extends JavaPlugin {
private static final Map<String, SaneEconomyCommand> COMMANDS = new HashMap<String, SaneEconomyCommand>() {{ private static final Map<String, SaneEconomyCommand> COMMANDS = new HashMap<String, SaneEconomyCommand>() {{
put("balance", new BalanceCommand()); put("balance", new BalanceCommand());
put("ecoadmin", new BalanceCommand()); put("ecoadmin", new EconomyAdminCommand());
put("pay", new PayCommand()); put("pay", new PayCommand());
}}; }};

View File

@ -47,8 +47,6 @@ public class BalanceCommand extends SaneEconomyCommand {
return; return;
} }
MessageUtils.sendMessage(sender, "Balance of %s is %s.", playerName, SaneEconomy.getInstance().getEconomyManager().getFormattedBalance(player)); MessageUtils.sendMessage(sender, "Balance for %s is %s.", playerName, SaneEconomy.getInstance().getEconomyManager().getFormattedBalance(player));
return;
} }
} }