summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/MagicCarpet/plugin.lua
diff options
context:
space:
mode:
authorAlexander Harkness <bearbin@gmail.com>2013-07-31 09:22:34 +0200
committerAlexander Harkness <bearbin@gmail.com>2013-07-31 09:22:34 +0200
commitc700108ab6a962c6f8088449208e887b6afc5f25 (patch)
tree5a0a7b68e5e8ac3c5abdfe46818f3114ecdf2324 /MCServer/Plugins/MagicCarpet/plugin.lua
parentDragged in the latest changes from core. (diff)
parentUpdated MagicCarpet to use new API [SEE DESC] (diff)
downloadcuberite-c700108ab6a962c6f8088449208e887b6afc5f25.tar
cuberite-c700108ab6a962c6f8088449208e887b6afc5f25.tar.gz
cuberite-c700108ab6a962c6f8088449208e887b6afc5f25.tar.bz2
cuberite-c700108ab6a962c6f8088449208e887b6afc5f25.tar.lz
cuberite-c700108ab6a962c6f8088449208e887b6afc5f25.tar.xz
cuberite-c700108ab6a962c6f8088449208e887b6afc5f25.tar.zst
cuberite-c700108ab6a962c6f8088449208e887b6afc5f25.zip
Diffstat (limited to 'MCServer/Plugins/MagicCarpet/plugin.lua')
-rw-r--r--MCServer/Plugins/MagicCarpet/plugin.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/MCServer/Plugins/MagicCarpet/plugin.lua b/MCServer/Plugins/MagicCarpet/plugin.lua
index b78c45f14..2fe5ba84f 100644
--- a/MCServer/Plugins/MagicCarpet/plugin.lua
+++ b/MCServer/Plugins/MagicCarpet/plugin.lua
@@ -37,6 +37,7 @@ function HandleCarpetCommand( Split, Player )
if( Carpet == nil ) then
Carpets[ Player ] = cCarpet:new()
Player:SendMessage("You're on a magic carpet!" )
+ Player:SendMessage("Look straight down to descend. Jump to ascend!" )
else
Carpet:remove()
Carpets[ Player ] = nil
@@ -72,8 +73,7 @@ function OnPlayerMoving(Player)
Carpet:moveTo( cLocation:new( Player:GetPosX(), Player:GetPosY() - 1, Player:GetPosZ() ) )
else
if( Player:GetPosY() < Carpet:getY() ) then
- LOGINFO("Fell tru mc!")
- Player:TeleportTo( Player:GetPosX(), Carpet:getY(), Player:GetPosZ() )
+ Player:TeleportToCoords(Player:GetPosX(), Carpet:getY(), Player:GetPosZ())
end
Carpet:moveTo( cLocation:new( Player:GetPosX(), Player:GetPosY(), Player:GetPosZ() ) )
end