THEJean_Kevin

detection pseudo

Oct 27th, 2015
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.40 KB | None | 0 0
  1. sensor = peripheral.wrap("top")
  2.  
  3.  
  4. local whitelist = {["THEJean_Kevin"] = true,
  5. ["Pain42820"] = true}
  6.  
  7. rs.setOutput("bottom",true)
  8. while true do
  9.     for m,k in pairs(sensor.getPlayers()) do
  10.       if whitelist[k.name] then
  11.         write("whitelisted. ")
  12.         rs.setOutput("bottom",false)
  13.       else
  14.         write("blacklisted. ")
  15.         rs.setOutput("bottom",true)
  16.       end
  17.     end
  18.  
  19.  
  20. end
Advertisement
Add Comment
Please, Sign In to add comment