Advertisement
Guest User

ServerRules

a guest
Aug 28th, 2014
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.42 KB | None | 0 0
  1. monitor = peripheral.wrap('top')
  2. term.redirect(monitor)
  3.  
  4. function center(text)
  5.     w = monitor.getSize()
  6.     x, y = monitor.getCursorPos()
  7.     monitor.setCursorPos((w/2)-#text/2, y)
  8.     print(text)
  9.    
  10. end
  11.  
  12. monitor.clear()
  13.  
  14. --Blank
  15.  
  16. center("")
  17.  
  18. --Top Line
  19.  
  20. monitor.setTextColor(colors.lime)
  21. center("Welcome")
  22.  
  23. --Blank
  24.  
  25. center("")
  26.  
  27. --Second Line
  28.  
  29. monitor.setTextColor(colors.red)
  30. center("Rules and Bylaws:")
  31.  
  32. --Blank
  33.  
  34. center("")
  35.  
  36. --Rule One
  37.  
  38. monitor.setTextColor(colors.lightGray)
  39. center("NO Griefing")
  40.  
  41. --Rule Two
  42.  
  43. center("NO Stealing")
  44.  
  45. --Rule Three
  46.  
  47. center("NO Arson")
  48.  
  49. --Rule Four
  50.  
  51. center("NO Chat Spam")
  52.  
  53. --Blank
  54.  
  55. center("")
  56.  
  57. --Indent
  58.  
  59. monitor.setTextColor(colors.red)
  60. center("Residential Areas")
  61. center("Should Remain Clear Of:")
  62.  
  63. --Blank
  64.  
  65. center("")
  66.  
  67. --Rule Five
  68.  
  69. monitor.setTextColor(colors.lightGray)
  70. center("Summoning")
  71.  
  72. --Rule Six
  73.  
  74. center("Quarries")
  75.  
  76. --Rule Seven
  77.  
  78. center("Megastructures")
  79.  
  80. --Rule Eight
  81.  
  82. center("Mob Spawners")
  83.  
  84. --Blank
  85.  
  86. center("")
  87.  
  88. --Rule Nine
  89.  
  90. monitor.setTextColor(colors.red)
  91. center("Rule Breakers Will Be Banned")
  92.  
  93. --Blank
  94.  
  95. center("")
  96.  
  97. --Rule Ten
  98.  
  99. monitor.setTextColor(colors.lime)
  100. center("Finders Keepers")
  101.  
  102. --Blank
  103.  
  104. center("")
  105.  
  106. --Rule Eleven
  107.  
  108. monitor.setTextColor(colors.lightBlue)
  109. center("All Admin Decisions Are Final")
  110.  
  111. --Blank
  112.  
  113. center("")
  114.  
  115. --Rule Twelve
  116.  
  117. center("All Donations Welcome")
  118.  
  119. term.restore()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement