From 9a548b3b3e5d69bc776383860a0611babd654d7b Mon Sep 17 00:00:00 2001 From: "[IPSA] Chris de Claverie" Date: Mon, 28 Sep 2020 00:15:03 +0200 Subject: Plugin reload feature (#4942) + Add `reload ` * Fixes #365 Co-authored-by: Alexander Harkness Co-authored-by: pwnOrbitals Co-authored-by: Tiger Wang --- Server/Plugins/APIDump/Classes/Plugins.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Server') diff --git a/Server/Plugins/APIDump/Classes/Plugins.lua b/Server/Plugins/APIDump/Classes/Plugins.lua index 63f4172e6..adc6bf0b3 100644 --- a/Server/Plugins/APIDump/Classes/Plugins.lua +++ b/Server/Plugins/APIDump/Classes/Plugins.lua @@ -675,6 +675,17 @@ cPluginManager.AddHook(cPluginManager.HOOK_CHAT, OnChatMessage); }, Notes = "Queues the specified plugin to be unloaded. To avoid deadlocks, the unloading happens in the main tick thread asynchronously.", }, + ReloadPlugin = + { + Params = + { + { + Name = "PluginName", + Type = "string", + }, + }, + Notes = "Queues the specified plugin to be reloaded. To avoid deadlocks, the reloading happens in the main tick thread asynchronously.", + } }, Constants = { -- cgit v1.2.3