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

7 lines
256 B
Lua
Raw Normal View History

function HandleSpawnCommand( Split, Player )
World = Player:GetWorld()
SetBackCoordinates( Player )
Player:TeleportTo( World:GetSpawnX(), World:GetSpawnY(), World:GetSpawnZ() )
LOGINFO( Player:GetName() .. " returned to spawn." )
return true
end