Jackson_Pike

Towny Info

Aug 4th, 2017
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.18 KB | None | 0 0
  1. -------------------
  2. if fs.exists("m") then
  3. --fs.delete("m")
  4. --shell.run("pastebin get nXvVUSuw m")
  5. term.clear()
  6. term.setCursorPos(1, 1)
  7. else
  8. shell.run("pastebin get nxvvusuw m")
  9.  
  10. term.clear()
  11. term.write("Downloading Text API.")
  12. sleep(1)
  13. term.write(".")
  14. sleep(1)
  15. term.write(".")
  16. sleep(1)
  17. term.write(" Success")
  18. term.setCursorPos(1, 2)
  19. os.loadAPI("m")
  20. shell.run("m")
  21. end
  22. function Ters()
  23. term.setBackgroundColor(colors.gray)
  24. term.clear()
  25. term.setCursorPos(1, 1)
  26. term.write("Running: Towny Info")
  27. end
  28. -------------------
  29. mon = m.getMonitor()
  30. monX, monY = mon.getSize()
  31. mon.setTextScale(1)
  32. -------------------
  33. m.clearScreen(colors.black, colors.black)
  34. m.drawBars(colors.gray, 1)
  35. m.writeText(monX/2-7, 1, colors.gray, colors.white, "  Towny Plugin")
  36. m.writeText(2, 3, colors.black, colors.cyan, "What is it? -")
  37. m.writeText(15, 3, colors.black, colors.white, " Towny is a Grief Prevention and")
  38. m.writeText(2, 4, colors.black, colors.white, " Plot Management plugin, which allows complete")
  39. m.writeText(2, 5, colors.black, colors.white, " control and protection of your base")
  40. m.drawBars(colors.gray, 7)
  41. m.writeText(2, 7, colors.gray, colors.cyan, " Commands:")
  42. m.writeText(3, 9, colors.black, colors.yellow, "Create Town: ")
  43. m.writeText(15, 9, colors.black, colors.white, " /t create <name>")
  44. m.writeText(3, 10, colors.black, colors.yellow, "Town Stats:")
  45. m.writeText(10, 10, colors.black, colors.white, " /t or /t <towname>")
  46. m.writeText(3, 10, colors.black, colors.yellow, "Add Residents: ")
  47. m.writeText(17, 10, colors.black, colors.white, " /t add <username>")
  48. m.writeText(3, 11, colors.black, colors.yellow, "Deposit $: ")
  49. m.writeText(14, 11, colors.black, colors.white, "/t deposit <amount>")
  50. m.writeText(3, 12, colors.black, colors.yellow, "Toggle Settings: ")
  51. m.writeText(20, 12, colors.black, colors.white, "/t toggle <setting>")
  52. m.writeText(3, 13, colors.black, colors.yellow, "Outposts: ")
  53. m.writeText(13, 13, colors.black, colors.white, "/t claim outpost and /t outpost")
  54. m.writeText(3, 14, colors.black, colors.yellow, "(Mayor Only)Withdraw $: ")
  55. m.writeText(27, 14, colors.black, colors.white, "/t withdraw <$>")
  56.  
  57.  
  58.  
  59.  
  60.  
  61. while true do
  62. Ters()
  63. sleep(20)
  64. end
Add Comment
Please, Sign In to add comment