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