Merge pull request #466 from Sxw1212/master
Fix error on MagicCarpet Disable
This commit is contained in:
commit
dec59e783f
@ -17,5 +17,6 @@ Sofapriester
|
|||||||
mborland
|
mborland
|
||||||
SamJBarney
|
SamJBarney
|
||||||
worktycho
|
worktycho
|
||||||
|
Sxw1212
|
||||||
|
|
||||||
Please add yourself to this list if you contribute to MCServer.
|
Please add yourself to this list if you contribute to MCServer.
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
local Carpets = {}
|
local Carpets = {}
|
||||||
|
local PLUGIN
|
||||||
|
|
||||||
function Initialize( Plugin )
|
function Initialize( Plugin )
|
||||||
Plugin:SetName( "MagicCarpet" )
|
Plugin:SetName( "MagicCarpet" )
|
||||||
@ -9,7 +10,9 @@ function Initialize( Plugin )
|
|||||||
|
|
||||||
local PluginManager = cPluginManager:Get()
|
local PluginManager = cPluginManager:Get()
|
||||||
PluginManager:BindCommand("/mc", "magiccarpet", HandleCarpetCommand, " - Spawns a magical carpet");
|
PluginManager:BindCommand("/mc", "magiccarpet", HandleCarpetCommand, " - Spawns a magical carpet");
|
||||||
|
|
||||||
|
PLUGIN = Plugin
|
||||||
|
|
||||||
LOG( "Initialised " .. Plugin:GetName() .. " v." .. Plugin:GetVersion() )
|
LOG( "Initialised " .. Plugin:GetName() .. " v." .. Plugin:GetVersion() )
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
@ -75,4 +78,4 @@ function OnPlayerMoving(Player)
|
|||||||
end
|
end
|
||||||
Carpet:moveTo( cLocation:new( Player:GetPosX(), Player:GetPosY(), Player:GetPosZ() ) )
|
Carpet:moveTo( cLocation:new( Player:GetPosX(), Player:GetPosY(), Player:GetPosZ() ) )
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user