summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/Core/spawn.lua
diff options
context:
space:
mode:
Diffstat (limited to 'MCServer/Plugins/Core/spawn.lua')
-rw-r--r--MCServer/Plugins/Core/spawn.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/MCServer/Plugins/Core/spawn.lua b/MCServer/Plugins/Core/spawn.lua
new file mode 100644
index 000000000..120c241fc
--- /dev/null
+++ b/MCServer/Plugins/Core/spawn.lua
@@ -0,0 +1,9 @@
+function HandleSpawnCommand(Split, Player)
+
+ World = Player:GetWorld()
+ SetBackCoordinates(Player)
+ Player:TeleportToCoords(World:GetSpawnX(), World:GetSpawnY(), World:GetSpawnZ())
+ SendMessageSuccess( Player, "Returned to world spawn" )
+ return true
+
+end