SHARE
TWEET

Test Sensor

DerMarten Nov 8th, 2015 (edited) 90 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top