summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/ProtectionAreas/HookHandlers.lua
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-06-07 22:19:36 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-06-07 22:19:36 +0200
commitb244f206d5c9c22cdae6bdbef273faaa858af5d2 (patch)
tree16dfcfc73297a5c9b2c4230c20bedb701cce482f /MCServer/Plugins/ProtectionAreas/HookHandlers.lua
parentProtectionAreas: Fixed cCommandState's detection of not-selected (diff)
downloadcuberite-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.lua4
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);