summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/Core/spawn.lua
diff options
context:
space:
mode:
Diffstat (limited to 'MCServer/Plugins/Core/spawn.lua')
-rw-r--r--MCServer/Plugins/Core/spawn.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/MCServer/Plugins/Core/spawn.lua b/MCServer/Plugins/Core/spawn.lua
index 73034d9cf..2938318b2 100644
--- a/MCServer/Plugins/Core/spawn.lua
+++ b/MCServer/Plugins/Core/spawn.lua
@@ -1,5 +1,8 @@
function HandleSpawnCommand( Split, Player )
World = Player:GetWorld()
+ X[Player:GetName()] = Player:GetPosX()
+ Y[Player:GetName()] = Player:GetPosY()
+ Z[Player:GetName()] = Player:GetPosZ()
Player:TeleportTo( World:GetSpawnX(), World:GetSpawnY(), World:GetSpawnZ() )
LOGINFO( Player:GetName() .. " returned to spawn." )
return true