Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sensor = peripheral.wrap("top")
- local whitelist = {["THEJean_Kevin"] = true,
- ["Pain42820"] = true}
- rs.setOutput("bottom",true)
- while true do
- for m,k in pairs(sensor.getPlayers()) do
- if whitelist[k.name] then
- write("whitelisted. ")
- rs.setOutput("bottom",false)
- else
- write("blacklisted. ")
- rs.setOutput("bottom",true)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment