summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/MagicCarpet/plugin.lua
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-10-04 23:22:01 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-10-04 23:22:01 +0200
commit914a318b8eab1d5cf913d3707a7af244b58a9bfb (patch)
tree63c86277447837795c569677c9462c1c0b58216f /MCServer/Plugins/MagicCarpet/plugin.lua
parentFixed discrepancy (diff)
downloadcuberite-914a318b8eab1d5cf913d3707a7af244b58a9bfb.tar
cuberite-914a318b8eab1d5cf913d3707a7af244b58a9bfb.tar.gz
cuberite-914a318b8eab1d5cf913d3707a7af244b58a9bfb.tar.bz2
cuberite-914a318b8eab1d5cf913d3707a7af244b58a9bfb.tar.lz
cuberite-914a318b8eab1d5cf913d3707a7af244b58a9bfb.tar.xz
cuberite-914a318b8eab1d5cf913d3707a7af244b58a9bfb.tar.zst
cuberite-914a318b8eab1d5cf913d3707a7af244b58a9bfb.zip
Diffstat (limited to '')
-rw-r--r--MCServer/Plugins/MagicCarpet/plugin.lua10
1 files changed, 4 insertions, 6 deletions
diff --git a/MCServer/Plugins/MagicCarpet/plugin.lua b/MCServer/Plugins/MagicCarpet/plugin.lua
index 219956984..4a2097351 100644
--- a/MCServer/Plugins/MagicCarpet/plugin.lua
+++ b/MCServer/Plugins/MagicCarpet/plugin.lua
@@ -33,17 +33,15 @@ end
function HandleCarpetCommand( Split, Player )
Carpet = Carpets[ Player ]
- PluginManager = cPluginManager:Get()
- local Core = PluginManager:GetPlugin("Core")
-
+
if( Carpet == nil ) then
Carpets[ Player ] = cCarpet:new()
- Core:Call("SendMessageSuccess", Player, "You're on a magic carpet!")
- Core:Call("SendMessage", Player, "Look straight down to descend. Jump to ascend.")
+ SendMessageSuccess(Player, "You're on a magic carpet!")
+ SendMessage(Player, "Look straight down to descend. Jump to ascend.")
else
Carpet:remove()
Carpets[ Player ] = nil
- Core:Call("SendMessageSuccess", Player, "The carpet vanished!")
+ SendMessageSuccess(Player, "The carpet vanished!")
end
return true