Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local goodPeople = {"UnRealDinnerbone", "manmaed", "Dinnerbeef"}
- scanner = peripheral.wrap("top")
- glass = peripheral.wrap("bottom")
- monitor = peripheral.find("monitor")
- monitor.write("Starting Up....")
- local lastName = "-"
- while true do
- listDown = 21
- players = scanner.getPlayers()
- glass.clear()
- redstone.setOutput("back", false)
- for name, player in pairs(players) do
- c = 0xFF0000
- playerName = player.name
- msg = playerName
- for _, v in pairs(goodPeople) do
- if v == playerName then
- c = 0x18ff00
- else
- redstone.setOutput("back", true)
- if playerName == lastName then
- print("Player STill Around")
- else
- monitor.write(playerName)
- end
- end
- end
- glass.addText(2, listDown, msg, c)
- listDown = listDown + 10
- end
- glass.sync()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement