[SOLVED] Server shutdown event
#2
Similar to the Initialize function there is also an OnDisable function. Here is an example: https://github.com/cuberite/WorldEdit/bl...in.lua#L77 No need to register it anywhere as long as it's a global function.

Keep in mind that this gets fired when the plugin gets disabled, so it also gets called when reloading the plugin. I believe it's exactly what you're looking for though Smile
Reply
Thanks given by:


Messages In This Thread
[SOLVED] Server shutdown event - by LuaIsAnoying - 05-27-2016, 04:22 AM
RE: Server shutdown event - by NiLSPACE - 05-27-2016, 05:11 AM
RE: Server shutdown event - by LuaIsAnoying - 05-27-2016, 05:19 AM
RE: Server shutdown event - by PureTryOut - 05-27-2016, 06:39 AM
RE: Server shutdown event - by LuaIsAnoying - 05-31-2016, 09:38 AM



Users browsing this thread: 1 Guest(s)