Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local chat = peripheral.wrap('right')
- chat.setDistance(-99999999999999999999999999999999999999999999999999999999999999999999999999999)
- chat.setName('§4§lCrazyMadMan')
- while true do
- event, _, player, message = os.pullEvent("chat_message") -- Now you got the event, which player, and which message.
- if message == "hi" then
- chat.say('§6§lHi there!')
- end
- print(player..': '..message)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement