Advertisement
markman4897

PlayerDetectV1

Apr 20th, 2014
58
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.44 KB | None
  1.     sens = peripheral.wrap("left")
  2.     mon = peripheral.wrap("top")
  3.      
  4.     whitelist = {"Bluebean404", "makromoo", "markman4897", "fuckwind2"}
  5.      
  6.     while true do
  7.       mon.clear()
  8.       term.clear()
  9.       mon.setCursorPos(1,1)
  10.       term.setCursorPos(1,1)
  11.      
  12.       players = sens.getPlayerNames()
  13.      
  14.       for k,v in pairs(players) do
  15.         mon.write(k..": "..v)
  16.         print(k..": "..v)
  17.       end
  18.     sleep(1)
  19.     end
Advertisement
RAW Paste Data Copied
Advertisement