From d2f6f7f51a76fcd776d1556c62bbf39fd76b58d6 Mon Sep 17 00:00:00 2001 From: StevenLawson Date: Fri, 15 Aug 2014 16:16:45 -0400 Subject: [PATCH] Make '/tfm reload' update blocked commands. Resolves #265. Config must be reloaded in order to pull in any changes to blocked commands list. --- src/me/StevenLawson/TotalFreedomMod/Commands/Command_tfm.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/me/StevenLawson/TotalFreedomMod/Commands/Command_tfm.java b/src/me/StevenLawson/TotalFreedomMod/Commands/Command_tfm.java index 851efa9..57ecd81 100644 --- a/src/me/StevenLawson/TotalFreedomMod/Commands/Command_tfm.java +++ b/src/me/StevenLawson/TotalFreedomMod/Commands/Command_tfm.java @@ -1,6 +1,7 @@ package me.StevenLawson.TotalFreedomMod.Commands; 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_BanManager; import me.StevenLawson.TotalFreedomMod.TFM_CommandBlocker; @@ -36,13 +37,13 @@ public class Command_tfm extends TFM_Command return true; } + TFM_MainConfig.load(); TFM_AdminList.load(); TFM_PermbanList.load(); TFM_PlayerList.load(); TFM_BanManager.load(); TFM_CommandBlocker.load(); - final String message = String.format("%s v%s.%s reloaded.", TotalFreedomMod.pluginName, TotalFreedomMod.pluginVersion,