Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. chatbox = peripheral.wrap("top")
  2. modem = peripheral.wrap("left")
  3. while true do
  4. event, player, message = os.pullEvent("chat")
  5. local command = {}
  6.  
  7. for word in message:gmatch('%S+') do
  8. table.insert(command,word)
  9. end
  10.  
  11. if player == "skiyte" then
  12. chat.say("You said: " . command[0]);
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement