Advertisement
csmit195

Tekkit Legends CC Chatbox

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