diff options
author | nielsbreu@gmail.com <nielsbreu@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-06-28 20:43:29 +0200 |
---|---|---|
committer | nielsbreu@gmail.com <nielsbreu@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-06-28 20:43:29 +0200 |
commit | cff6ff2223247997d357fc9421a2cfa3a5a54598 (patch) | |
tree | 755347c25db8c6db4a1fe95c34d0863425482bd9 /MCServer/Plugins/Core/spawn.lua | |
parent | Added /listworlds command and fixed bug in /listgroups where you have an extra comma at the end. (diff) | |
download | cuberite-cff6ff2223247997d357fc9421a2cfa3a5a54598.tar cuberite-cff6ff2223247997d357fc9421a2cfa3a5a54598.tar.gz cuberite-cff6ff2223247997d357fc9421a2cfa3a5a54598.tar.bz2 cuberite-cff6ff2223247997d357fc9421a2cfa3a5a54598.tar.lz cuberite-cff6ff2223247997d357fc9421a2cfa3a5a54598.tar.xz cuberite-cff6ff2223247997d357fc9421a2cfa3a5a54598.tar.zst cuberite-cff6ff2223247997d357fc9421a2cfa3a5a54598.zip |
Diffstat (limited to 'MCServer/Plugins/Core/spawn.lua')
-rw-r--r-- | MCServer/Plugins/Core/spawn.lua | 4 |
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
|