diff options
Diffstat (limited to 'Plugins/NewTest/spawn.lua')
-rw-r--r-- | Plugins/NewTest/spawn.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Plugins/NewTest/spawn.lua b/Plugins/NewTest/spawn.lua new file mode 100644 index 000000000..73034d9cf --- /dev/null +++ b/Plugins/NewTest/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 |