More new plugin awesomeness
git-svn-id: http://mc-server.googlecode.com/svn/trunk@174 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
6
Plugins/NewTest/spawn.lua
Normal file
6
Plugins/NewTest/spawn.lua
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user