Fixed MemorySection issues with customizable commands

This commit is contained in:
Aria 2019-09-16 20:38:24 +02:00
parent 58a0e87f82
commit 6452b84dbd

View File

@ -279,14 +279,14 @@ public class MMOCore extends JavaPlugin {
FileConfiguration config = new ConfigFile("commands").getConfig();
commandMap.register(config.getString("player"), new PlayerStatsCommand(config.getConfigurationSection("player")));
commandMap.register(config.getString("attributes"), new AttributesCommand(config.getConfigurationSection("attributes")));
commandMap.register(config.getString("class"), new ClassCommand(config.getConfigurationSection("class")));
commandMap.register(config.getString("waypoints"), new WaypointsCommand(config.getConfigurationSection("waypoints")));
commandMap.register(config.getString("quests"), new QuestsCommand(config.getConfigurationSection("quests")));
commandMap.register(config.getString("skills"), new SkillsCommand(config.getConfigurationSection("skills")));
commandMap.register(config.getString("friends"), new FriendsCommand(config.getConfigurationSection("friends")));
commandMap.register(config.getString("party"), new PartyCommand(config.getConfigurationSection("party")));
commandMap.register(config.getString("player.main"), new PlayerStatsCommand(config.getConfigurationSection("player")));
commandMap.register(config.getString("attributes.main"), new AttributesCommand(config.getConfigurationSection("attributes")));
commandMap.register(config.getString("class.main"), new ClassCommand(config.getConfigurationSection("class")));
commandMap.register(config.getString("waypoints.main"), new WaypointsCommand(config.getConfigurationSection("waypoints")));
commandMap.register(config.getString("quests.main"), new QuestsCommand(config.getConfigurationSection("quests")));
commandMap.register(config.getString("skills.main"), new SkillsCommand(config.getConfigurationSection("skills")));
commandMap.register(config.getString("friends.main"), new FriendsCommand(config.getConfigurationSection("friends")));
commandMap.register(config.getString("party.main"), new PartyCommand(config.getConfigurationSection("party")));
if (hasEconomy() && economy.isValid()) {
commandMap.register(config.getString("withdraw"), new WithdrawCommand(config.getConfigurationSection("withdraw")));