diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-06-07 22:19:36 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-06-07 22:19:36 +0200 |
commit | b244f206d5c9c22cdae6bdbef273faaa858af5d2 (patch) | |
tree | 16dfcfc73297a5c9b2c4230c20bedb701cce482f /MCServer/Plugins/ProtectionAreas/HookHandlers.lua | |
parent | ProtectionAreas: Fixed cCommandState's detection of not-selected (diff) | |
download | cuberite-b244f206d5c9c22cdae6bdbef273faaa858af5d2.tar cuberite-b244f206d5c9c22cdae6bdbef273faaa858af5d2.tar.gz cuberite-b244f206d5c9c22cdae6bdbef273faaa858af5d2.tar.bz2 cuberite-b244f206d5c9c22cdae6bdbef273faaa858af5d2.tar.lz cuberite-b244f206d5c9c22cdae6bdbef273faaa858af5d2.tar.xz cuberite-b244f206d5c9c22cdae6bdbef273faaa858af5d2.tar.zst cuberite-b244f206d5c9c22cdae6bdbef273faaa858af5d2.zip |
Diffstat (limited to 'MCServer/Plugins/ProtectionAreas/HookHandlers.lua')
-rw-r--r-- | MCServer/Plugins/ProtectionAreas/HookHandlers.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MCServer/Plugins/ProtectionAreas/HookHandlers.lua b/MCServer/Plugins/ProtectionAreas/HookHandlers.lua index 00cbcf3b3..1b22d0ceb 100644 --- a/MCServer/Plugins/ProtectionAreas/HookHandlers.lua +++ b/MCServer/Plugins/ProtectionAreas/HookHandlers.lua @@ -9,9 +9,9 @@ function InitializeHooks(a_Plugin)
local PlgMgr = cRoot:Get():GetPluginManager();
PlgMgr:AddHook(a_Plugin, cPluginManager.HOOK_DISCONNECT);
- PlgMgr:AddHook(a_Plugin, cPluginManager.HOOK_PLAYER_JOINED);
PlgMgr:AddHook(a_Plugin, cPluginManager.HOOK_PLAYER_LEFT_CLICK);
PlgMgr:AddHook(a_Plugin, cPluginManager.HOOK_PLAYER_RIGHT_CLICK);
+ PlgMgr:AddHook(a_Plugin, cPluginManager.HOOK_PLAYER_SPAWNED);
end
@@ -33,7 +33,7 @@ end; -function OnPlayerJoined(a_Player)
+function OnPlayerSpawned(a_Player)
-- Create a new cPlayerAreas object for this player
if (g_PlayerAreas[a_Player:GetUniqueID()] == nil) then
LoadPlayerAreas(a_Player);
|