mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-30 10:05:59 +00:00
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:
parent
dc2c996516
commit
d2f6f7f51a
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user