Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- chatbox = peripheral.wrap("top")
- modem = peripheral.wrap("left")
- while true do
- event, player, message = os.pullEvent("chat")
- local command = {}
- for word in message:gmatch('%S+') do
- table.insert(command,word)
- end
- if player == "skiyte" then
- chat.say("You said: " . command[0]);
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement