diff options
Diffstat (limited to 'Plugins/Core/spawn.lua')
-rw-r--r-- | Plugins/Core/spawn.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Plugins/Core/spawn.lua b/Plugins/Core/spawn.lua new file mode 100644 index 000000000..73034d9cf --- /dev/null +++ b/Plugins/Core/spawn.lua @@ -0,0 +1,6 @@ +function HandleSpawnCommand( Split, Player )
+ World = Player:GetWorld()
+ Player:TeleportTo( World:GetSpawnX(), World:GetSpawnY(), World:GetSpawnZ() )
+ LOGINFO( Player:GetName() .. " returned to spawn." )
+ return true
+end
\ No newline at end of file |