Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if fs.exists("events")==false then
- shell.run("pastebin get bmKBU4Rv events")
- end
- os.loadAPI("events")
- if fs.exists("button")==false then
- shell.run("pastebin get hbeLn1ni button")
- end
- os.loadAPI("button")
- button.setMonitorSide("top")
- button.setBackgroundColor(256)
- local monitor=peripheral.wrap("top")
- function switchTab(bool,buttonID,buttonText)
- for bID,text in pairs(ruleTabs) do
- if bID~=buttonID then
- button.setButtonInfo(bID,"active",false)
- end
- end
- button.drawAllButtons()
- local strings=ruleTabs[buttonID]
- monitor.setBackgroundColor(256)
- for id,text in ipairs(strings) do
- monitor.setCursorPos(3,4+id)
- monitor.write(text)
- end
- end
- ruleTabs={
- [button.addButton(1,1,15,3,"Griefing",switchTab,true,false,128,256)]={"Any way of griefing is strictly forbidden.","This includes using machines to destroy blocks.","Griefing will be punished severly.","You have been warned."},
- [button.addButton(16,1,15,3,"Chunk Loading",switchTab,true,false,128,256)]={"Chunk loading can lag the server quite a bit.","To avoid server lag you are only","Allowed to use personal anchors to load your chunks"},
- [button.addButton(31,1,15,3,"PvP",switchTab,true,false,128,256)]={"You are allowed to kill other players in the game.","However refrain from continuously","(spawn) killing the same person."},
- [button.addButton(46,1,16,3,"Machines",switchTab,true,false,128,256)]={"You have to try and prevent your machines","From creating a lot of server lag","If an admin tells you your machine is too laggy","You have to improve it, or an admin can remove it"},
- }
- while true do
- events.handleCCEvents()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement