diff options
author | Alexander Harkness <bearbin@gmail.com> | 2013-12-24 09:03:52 +0100 |
---|---|---|
committer | Alexander Harkness <bearbin@gmail.com> | 2013-12-24 09:03:52 +0100 |
commit | dec59e783f78117166fe051c3f499d0579cbc7c1 (patch) | |
tree | 224035e2e64a04be3ede3ec68de697dbddcfe368 | |
parent | Replaced esCreeper with esMonster. (diff) | |
parent | Add myself to CONTRIBUTORS to comply with the Apache License (diff) | |
download | cuberite-dec59e783f78117166fe051c3f499d0579cbc7c1.tar cuberite-dec59e783f78117166fe051c3f499d0579cbc7c1.tar.gz cuberite-dec59e783f78117166fe051c3f499d0579cbc7c1.tar.bz2 cuberite-dec59e783f78117166fe051c3f499d0579cbc7c1.tar.lz cuberite-dec59e783f78117166fe051c3f499d0579cbc7c1.tar.xz cuberite-dec59e783f78117166fe051c3f499d0579cbc7c1.tar.zst cuberite-dec59e783f78117166fe051c3f499d0579cbc7c1.zip |
Diffstat (limited to '')
-rw-r--r-- | CONTRIBUTORS | 1 | ||||
-rw-r--r-- | MCServer/Plugins/MagicCarpet/plugin.lua | 7 |
2 files changed, 6 insertions, 2 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 99110ac90..dbcc93c7e 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -17,5 +17,6 @@ Sofapriester mborland SamJBarney worktycho +Sxw1212 Please add yourself to this list if you contribute to MCServer. diff --git a/MCServer/Plugins/MagicCarpet/plugin.lua b/MCServer/Plugins/MagicCarpet/plugin.lua index 81eb02a9c..b05816e48 100644 --- a/MCServer/Plugins/MagicCarpet/plugin.lua +++ b/MCServer/Plugins/MagicCarpet/plugin.lua @@ -1,4 +1,5 @@ local Carpets = {} +local PLUGIN function Initialize( Plugin ) Plugin:SetName( "MagicCarpet" ) @@ -9,7 +10,9 @@ function Initialize( Plugin ) local PluginManager = cPluginManager:Get() PluginManager:BindCommand("/mc", "magiccarpet", HandleCarpetCommand, " - Spawns a magical carpet"); - + + PLUGIN = Plugin + LOG( "Initialised " .. Plugin:GetName() .. " v." .. Plugin:GetVersion() ) return true end @@ -75,4 +78,4 @@ function OnPlayerMoving(Player) end Carpet:moveTo( cLocation:new( Player:GetPosX(), Player:GetPosY(), Player:GetPosZ() ) ) end -end
\ No newline at end of file +end |