summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins
diff options
context:
space:
mode:
Diffstat (limited to 'MCServer/Plugins')
-rw-r--r--MCServer/Plugins/Core/spawn.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/MCServer/Plugins/Core/spawn.lua b/MCServer/Plugins/Core/spawn.lua
index 284a80685..d4e033c7e 100644
--- a/MCServer/Plugins/Core/spawn.lua
+++ b/MCServer/Plugins/Core/spawn.lua
@@ -1,7 +1,7 @@
-function HandleSpawnCommand( Split, Player )
+function HandleSpawnCommand(Split, Player)
World = Player:GetWorld()
- SetBackCoordinates( Player )
- Player:TeleportTo( World:GetSpawnX(), World:GetSpawnY(), World:GetSpawnZ() )
- LOGINFO( Player:GetName() .. " returned to spawn." )
+ SetBackCoordinates(Player)
+ Player:TeleportToCoords(World:GetSpawnX(), World:GetSpawnY(), World:GetSpawnZ())
+ LOGINFO(Player:GetName() .. " returned to spawn.")
return true
end \ No newline at end of file