mirror of
https://github.com/AppleDash/SaneEconomy.git
synced 2024-11-26 12:05:46 +01:00
Quick fix in BalanceCommand and fix loading of EconomyAdminCommand
This commit is contained in:
parent
e5c069be5d
commit
7ccc672f5d
@ -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());
|
||||||
}};
|
}};
|
||||||
|
|
||||||
|
@ -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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user