Advertisement
MCFunRide

Core System v2

May 23rd, 2015
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1.  
  2. cmd = peripheral.find("command")
  3. os.loadAPI("/jnet")
  4. term.clear()
  5. jnet.open()
  6. term.setCursorPos(1,1)
  7. print("CubeCore v1")
  8. print("Coded by MCFunRide")
  9. print("All Rights Reserved.")
  10. print()
  11. print("Core Ready")
  12. mon = peripheral.wrap("right")
  13. shell.run("bg monitor monitor_173 mon")
  14.  
  15. function say(string)
  16. cmd.setCommand("sudo @a ping &d[&c&lGLa&4&lDoS&d] "..string)
  17. cmd.runCommand()
  18. end
  19.  
  20. say("Test")
  21. cmd = peripheral.find("command")
  22.  
  23. function command(data)
  24. cmd.setCommand(data)
  25. cmd.runCommand()
  26. end
  27.  
  28. while true do
  29. local id, message = jnet.receive()
  30. if id == 5657 and message == "reboot" then
  31. say("Rebooting...")
  32. sleep(3)
  33. os.reboot()
  34. elseif id == 5657 and message == "shutdown" then
  35. say("Shutting down...")
  36. sleep(3)
  37. os.shutdown()
  38. elseif id == 5657 and message == "riot" then
  39. cmd.setCommand("sudo @a c:&d㥸3�ूC�ລ88٥84ͥ9Cລ88ूC�壟E� &aR&bI&cO&dT&e! &d㥸3�ूC�ລ88٥84ͥ9Cລ88ूC�壟E�")
  40. cmd.runCommand()
  41. say("&d㥸3�ूC�ລ88٥84ͥ9Cລ88ूC�壟E� &aR&bI&cO&dT&e! &d㥸3�ूC�ລ88٥84ͥ9Cລ88ूC�壟E�")
  42. elseif id == 5657 and message == "cara" then
  43. disk.playAudio("back")
  44. elseif id == 5657 and message == "stopmusic" then
  45. disk.stopAudio("back")
  46. else
  47. if id == 5657 then
  48. say(message)
  49. end
  50. end
  51. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement