Make '/tfm reload' update blocked commands. Resolves #265.

Config must be reloaded in order to pull in any changes to blocked commands list.
This commit is contained in:
StevenLawson 2014-08-15 16:16:45 -04:00
parent dc2c996516
commit d2f6f7f51a

View File

@ -1,6 +1,7 @@
package me.StevenLawson.TotalFreedomMod.Commands; package me.StevenLawson.TotalFreedomMod.Commands;
import me.StevenLawson.TotalFreedomMod.Config.TFM_ConfigEntry; import me.StevenLawson.TotalFreedomMod.Config.TFM_ConfigEntry;
import me.StevenLawson.TotalFreedomMod.Config.TFM_MainConfig;
import me.StevenLawson.TotalFreedomMod.TFM_AdminList; import me.StevenLawson.TotalFreedomMod.TFM_AdminList;
import me.StevenLawson.TotalFreedomMod.TFM_BanManager; import me.StevenLawson.TotalFreedomMod.TFM_BanManager;
import me.StevenLawson.TotalFreedomMod.TFM_CommandBlocker; import me.StevenLawson.TotalFreedomMod.TFM_CommandBlocker;
@ -36,13 +37,13 @@ public class Command_tfm extends TFM_Command
return true; return true;
} }
TFM_MainConfig.load();
TFM_AdminList.load(); TFM_AdminList.load();
TFM_PermbanList.load(); TFM_PermbanList.load();
TFM_PlayerList.load(); TFM_PlayerList.load();
TFM_BanManager.load(); TFM_BanManager.load();
TFM_CommandBlocker.load(); TFM_CommandBlocker.load();
final String message = String.format("%s v%s.%s reloaded.", final String message = String.format("%s v%s.%s reloaded.",
TotalFreedomMod.pluginName, TotalFreedomMod.pluginName,
TotalFreedomMod.pluginVersion, TotalFreedomMod.pluginVersion,