summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/MagicCarpet
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-08-03 00:26:07 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-08-03 00:26:07 +0200
commit88ba86be57997480d3fc2037e277a9ae448a1550 (patch)
tree25e08201dc048df54f67244813e35bc2b3030090 /MCServer/Plugins/MagicCarpet
parentAllToLua now resets the git status for the files. (diff)
parentAdded message standardisation (diff)
downloadcuberite-88ba86be57997480d3fc2037e277a9ae448a1550.tar
cuberite-88ba86be57997480d3fc2037e277a9ae448a1550.tar.gz
cuberite-88ba86be57997480d3fc2037e277a9ae448a1550.tar.bz2
cuberite-88ba86be57997480d3fc2037e277a9ae448a1550.tar.lz
cuberite-88ba86be57997480d3fc2037e277a9ae448a1550.tar.xz
cuberite-88ba86be57997480d3fc2037e277a9ae448a1550.tar.zst
cuberite-88ba86be57997480d3fc2037e277a9ae448a1550.zip
Diffstat (limited to 'MCServer/Plugins/MagicCarpet')
-rw-r--r--MCServer/Plugins/MagicCarpet/plugin.lua13
1 files changed, 5 insertions, 8 deletions
diff --git a/MCServer/Plugins/MagicCarpet/plugin.lua b/MCServer/Plugins/MagicCarpet/plugin.lua
index 2fe5ba84f..3101866cd 100644
--- a/MCServer/Plugins/MagicCarpet/plugin.lua
+++ b/MCServer/Plugins/MagicCarpet/plugin.lua
@@ -36,12 +36,12 @@ function HandleCarpetCommand( Split, Player )
Carpet = Carpets[ 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!" )
+ Player:SendMessage(cChatColor.Green .. "[INFO] " .. cChatColor.White .. "You're on a magic carpet!" )
+ Player:SendMessage(cChatColor.Yellow .. "[INFO] " .. cChatColor.White .. "Look straight down to descend. Jump to ascend!" )
else
Carpet:remove()
Carpets[ Player ] = nil
- Player:SendMessage("The carpet vanished!" )
+ Player:SendMessage(cChatColor.Green .. "[INFO] " .. cChatColor.White .. "The carpet vanished!" )
end
return true
@@ -73,11 +73,8 @@ function OnPlayerMoving(Player)
Carpet:moveTo( cLocation:new( Player:GetPosX(), Player:GetPosY() - 1, Player:GetPosZ() ) )
else
if( Player:GetPosY() < Carpet:getY() ) then
- Player:TeleportToCoords(Player:GetPosX(), Carpet:getY(), Player:GetPosZ())
+ Player:TeleportToCoords(Player:GetPosX(), Carpet:getY() + 0.2, Player:GetPosZ())
end
Carpet:moveTo( cLocation:new( Player:GetPosX(), Player:GetPosY(), Player:GetPosZ() ) )
end
-end
-
-
-
+end \ No newline at end of file