コード例 #1
0
 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();
 }
コード例 #2
0
 public void Use(Player p, string[] args)
 {
     Player.UniversalChat("Reloading the Command system, please wait.");
     Plugin.Plugin.unloadAll();
     Command.Commands.Clear();
     LoadAllDlls.InitCommandsAndPlugins();
     Initialize();
 }