Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mon = peripheral.wrap("right")
- mon.setTextScale(2)
- mon.clear()
- mon.setCursorPos(1,1)
- local function centerText (printThis)
- local xsize,ysize = mon.getSize()
- local curCol,curRow = mon.getCursorPos()
- mon.setCursorPos((xsize - #printThis) /2, curRow)
- mon.write(printThis)
- mon.setCursorPos(1, curRow + 1)
- end
- local function agreeRules ()
- mon.clear()
- mon.setCursorPos(1,1)
- centerText("Rules:")
- centerText("1) Don't be a dick.")
- centerText("2) Don't break the server.")
- centerText("")
- centerText("Do you agree to these rules?")
- centerText("(Right-Click the Player Sensor)")
- centerText("")
- centerText("<<<<<<<<<<<<<<<<")
- local event, players = os.pullEvent("player")
- local commandBlock = peripheral.wrap("bottom")
- commandBlock.setCommand("pex user " .. players .. " group set member")
- commandBlock.runCommand()
- commandBlock.setCommand("broadcast " .. players .. " has become a member!")
- commandBlock.runCommand()
- tellCommands()
- end
- function tellCommands()
- mon.clear()
- mon.setCursorPos(1,1)
- centerText("Use /home set to save location,")
- centerText("and /home to return to saved")
- centerText("location.")
- centerText("")
- centerText("Use /tppos to find your way.")
- centerText("")
- centerText("Equip your heart cannisters.")
- centerText("No, seriously. You'll die.")
- centerText("(Right-Click to Continue)")
- os.pullEvent("monitor_touch")
- startScreen()
- end
- function startScreen ()
- mon.clear()
- mon.setCursorPos(1,1)
- centerText("Not The 1.7.10 Pack")
- centerText("Official Test Server!")
- centerText("")
- centerText("(Right-Click w/ Empty Hand)")
- os.pullEvent("monitor_touch")
- agreeRules()
- end
- startScreen()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement