DerMarten

Test Sensor

Nov 8th, 2015
95
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local p = peripheral.wrap("top")
  2. local players = {}
  3. local old = 0
  4. while true do
  5.   players = p.getPlayers()
  6.   for player in pairs(players) do
  7.     shell.run("clear")
  8.     if old == player then
  9.        
  10.     else
  11.         print(player)
  12.     end
  13.     old = player
  14.     os.sleep(0.5)
  15.   end
  16. end
RAW Paste Data