1
0
cuberite-2a/MCServer/Plugins/Core/spawn.lua

7 lines
248 B
Lua
Raw Normal View History

2013-07-27 11:24:03 -04:00
function HandleSpawnCommand(Split, Player)
World = Player:GetWorld()
SetBackCoordinates(Player)
Player:TeleportToCoords(World:GetSpawnX(), World:GetSpawnY(), World:GetSpawnZ())
LOGINFO(Player:GetName() .. " returned to spawn.")
return true
end