public static HandleCommandLinePostConfigLoad ( string parms ) : void | ||
parms | string | parms - The array of arguments passed in through the command line. |
Результат | void |
/// <summary> /// Reloads all configuration settings, groups, regions and raises the reload event. /// </summary> public void Reload(TSPlayer player) { FileTools.SetupConfig(); TShock.HandleCommandLinePostConfigLoad(Environment.GetCommandLineArgs()); TShock.Groups.LoadPermisions(); TShock.Regions.ReloadAllRegions(); Hooks.GeneralHooks.OnReloadEvent(player); }
/// <summary> /// Reloads all configuration settings, groups, regions and raises the reload event. /// </summary> public void Reload() { FileTools.SetupConfig(); TShock.HandleCommandLinePostConfigLoad(Environment.GetCommandLineArgs()); TShock.Groups.LoadPermisions(); TShock.Regions.Reload(); TShock.ItemBans.DataModel.UpdateItemBans(); TShock.ProjectileBans.UpdateBans(); TShock.TileBans.UpdateBans(); }