Fixed last of the MemorySection command bugs

This commit is contained in:
Aria 2019-10-13 20:15:23 +02:00
parent f3ff917cb9
commit b47e1eb334

View File

@ -300,8 +300,8 @@ public class MMOCore extends JavaPlugin {
commandMap.register("mmocore", new PartyCommand(config.getConfigurationSection("party")));
if (hasEconomy() && economy.isValid()) {
commandMap.register(config.getString("withdraw"), new WithdrawCommand(config.getConfigurationSection("withdraw")));
commandMap.register(config.getString("deposit"), new DepositCommand(config.getConfigurationSection("deposit")));
commandMap.register("mmocore", new WithdrawCommand(config.getConfigurationSection("withdraw")));
commandMap.register("mmocore", new DepositCommand(config.getConfigurationSection("deposit")));
}
}
catch(NoSuchFieldException | IllegalArgumentException | IllegalAccessException ex) {