Advertisement
Guest User

Untitled

a guest
Sep 21st, 2013
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. minetest.register_on_chat_message(function(name, message, playername, player)
  2. local cmd = "/spawn"
  3. if message:sub(0, #cmd) == cmd then
  4. if message == '/spawn' then
  5. local player = minetest.env:get_player_by_name(name)
  6. minetest.chat_send_player(player:get_player_name(), "Teleporting to spawn...")
  7. player:setpos({x=-307, y=20, z=-426})
  8. return true
  9. end
  10. end
  11. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement