summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/HookNotify
diff options
context:
space:
mode:
Diffstat (limited to 'MCServer/Plugins/HookNotify')
-rw-r--r--MCServer/Plugins/HookNotify/HookNotify.lua27
1 files changed, 27 insertions, 0 deletions
diff --git a/MCServer/Plugins/HookNotify/HookNotify.lua b/MCServer/Plugins/HookNotify/HookNotify.lua
index f04dc023c..efb96fec5 100644
--- a/MCServer/Plugins/HookNotify/HookNotify.lua
+++ b/MCServer/Plugins/HookNotify/HookNotify.lua
@@ -15,8 +15,11 @@ function Initialize(Plugin)
PluginManager = cRoot:Get():GetPluginManager()
PluginManager:AddHook(Plugin, cPluginManager.HOOK_BLOCK_TO_PICKUPS);
PluginManager:AddHook(Plugin, cPluginManager.HOOK_CHAT);
+ PluginManager:AddHook(Plugin, cPluginManager.HOOK_CHUNK_AVAILABLE);
PluginManager:AddHook(Plugin, cPluginManager.HOOK_CHUNK_GENERATED);
PluginManager:AddHook(Plugin, cPluginManager.HOOK_CHUNK_GENERATING);
+ PluginManager:AddHook(Plugin, cPluginManager.HOOK_CHUNK_UNLOADED);
+ PluginManager:AddHook(Plugin, cPluginManager.HOOK_CHUNK_UNLOADING);
PluginManager:AddHook(Plugin, cPluginManager.HOOK_COLLECTING_PICKUP);
PluginManager:AddHook(Plugin, cPluginManager.HOOK_CRAFTING_NO_RECIPE);
PluginManager:AddHook(Plugin, cPluginManager.HOOK_DISCONNECT);
@@ -99,6 +102,14 @@ end
+function OnChunkAvailable(...)
+ LogHook("OnChunkAvailable", unpack(arg));
+end
+
+
+
+
+
function OnChunkGenerated(...)
LogHook("OnChunkGenerated", unpack(arg));
end
@@ -115,6 +126,22 @@ end
+function OnChunkUnloaded(...)
+ LogHook("OnChunkUnloaded", unpack(arg));
+end
+
+
+
+
+
+function OnChunkUnloading(...)
+ LogHook("OnChunkUnloading", unpack(arg));
+end
+
+
+
+
+
function OnPlayerUsingItem(...)
LogHook("OnPlayerUsingItem", unpack(arg));
end