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.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/MCServer/Plugins/Core/spawn.lua b/MCServer/Plugins/Core/spawn.lua
index 2938318b2..284a80685 100644
--- a/MCServer/Plugins/Core/spawn.lua
+++ b/MCServer/Plugins/Core/spawn.lua
@@ -1,8 +1,6 @@
function HandleSpawnCommand( Split, Player )
World = Player:GetWorld()
- X[Player:GetName()] = Player:GetPosX()
- Y[Player:GetName()] = Player:GetPosY()
- Z[Player:GetName()] = Player:GetPosZ()
+ SetBackCoordinates( Player )
Player:TeleportTo( World:GetSpawnX(), World:GetSpawnY(), World:GetSpawnZ() )
LOGINFO( Player:GetName() .. " returned to spawn." )
return true