Added event for reloading configs, so when a user does /reload it informs plugins that a config reload is requested.
This commit is contained in:
parent
b37552ff27
commit
e37ada8749
3 changed files with 34 additions and 2 deletions
|
|
@ -2288,10 +2288,11 @@ namespace TShockAPI
|
|||
FileTools.SetupConfig();
|
||||
TShock.HandleCommandLinePostConfigLoad(Environment.GetCommandLineArgs());
|
||||
TShock.Groups.LoadPermisions();
|
||||
//todo: Create an event for reloads to propegate to plugins.
|
||||
TShock.Regions.ReloadAllRegions();
|
||||
args.Player.SendSuccessMessage(
|
||||
"Configuration, permissions, and regions reload complete. Some changes may require a server restart.");
|
||||
|
||||
Hooks.GeneralHooks.OnReloadEvent(args.Player);
|
||||
}
|
||||
|
||||
private static void ServerPassword(CommandArgs args)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue