From 476cd25ade814a25a0afbc5d6c5a3b5ae9060b8f Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sat, 2 Mar 2013 14:43:46 +0000 Subject: Core: Updated with new features (contributed by STR_Warrior) http://forum.mc-server.org/showthread.php?tid=4&pid=6634#pid6634 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1235 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- MCServer/Plugins/Core/back.lua | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 MCServer/Plugins/Core/back.lua (limited to 'MCServer/Plugins/Core/back.lua') diff --git a/MCServer/Plugins/Core/back.lua b/MCServer/Plugins/Core/back.lua new file mode 100644 index 000000000..e57f224f2 --- /dev/null +++ b/MCServer/Plugins/Core/back.lua @@ -0,0 +1,9 @@ +function HandleBackCommand( Split, Player ) + if (X[Player:GetName()] == nil) or (Y[Player:GetName()] == nil) or (Z[Player:GetName()] == nil) then + Player:SendMessage(cChatColor.Green .. "There is no last position known") + else + Player:TeleportTo(X[Player:GetName()], Y[Player:GetName()], Z[Player:GetName()]) + Player:SendMessage(cChatColor.Green .. "You teleported back to your last known position") + end + return true +end \ No newline at end of file -- cgit v1.2.3