private static void ReloadCommands() { Logger.Log("Reloading Plugins and Commands", LogType.Debug); Plugin.unloadAll(); Command.Commands.Clear(); LoadAllDlls.InitCommandsAndPlugins(); new MCForge.Interface.Command.CmdReloadCmds().Initialize(); }
public void Use(Player p, string[] args) { Player.UniversalChat("Reloading the Command system, please wait."); Plugin.Plugin.unloadAll(); Command.Commands.Clear(); LoadAllDlls.InitCommandsAndPlugins(); Initialize(); }