diff options
author | madmaxoft <github@xoft.cz> | 2013-08-21 22:03:50 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-08-21 22:03:50 +0200 |
commit | 268661990dbfde430383ce21d9684e37ee2135d9 (patch) | |
tree | b9961de605d657fa89f5a5e6a3d2a7df8113c101 /MCServer/Plugins/MagicCarpet/plugin.lua | |
parent | Updated the Debuggers plugin to the #121 API. (diff) | |
download | cuberite-268661990dbfde430383ce21d9684e37ee2135d9.tar cuberite-268661990dbfde430383ce21d9684e37ee2135d9.tar.gz cuberite-268661990dbfde430383ce21d9684e37ee2135d9.tar.bz2 cuberite-268661990dbfde430383ce21d9684e37ee2135d9.tar.lz cuberite-268661990dbfde430383ce21d9684e37ee2135d9.tar.xz cuberite-268661990dbfde430383ce21d9684e37ee2135d9.tar.zst cuberite-268661990dbfde430383ce21d9684e37ee2135d9.zip |
Diffstat (limited to 'MCServer/Plugins/MagicCarpet/plugin.lua')
-rw-r--r-- | MCServer/Plugins/MagicCarpet/plugin.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/MCServer/Plugins/MagicCarpet/plugin.lua b/MCServer/Plugins/MagicCarpet/plugin.lua index 3101866cd..27dcdf45d 100644 --- a/MCServer/Plugins/MagicCarpet/plugin.lua +++ b/MCServer/Plugins/MagicCarpet/plugin.lua @@ -7,9 +7,8 @@ function Initialize( Plugin ) Plugin:SetName( "MagicCarpet" ) Plugin:SetVersion( 1 ) - PluginManager = cRoot:Get():GetPluginManager() - PluginManager:AddHook(Plugin, cPluginManager.HOOK_PLAYER_MOVING) - PluginManager:AddHook(Plugin, cPluginManager.HOOK_DISCONNECT) + cPluginManager.AddHook(cPluginManager.HOOK_PLAYER_MOVING, OnPlayerMoving) + cPluginManager.AddHook(cPluginManager.HOOK_DISCONNECT, OnDisconnect) PluginManager:BindCommand("/mc", "magiccarpet", HandleCarpetCommand, " - Spawns a magical carpet"); |