Advertisement
Guest User

detect

a guest
Nov 28th, 2014
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.49 KB | None | 0 0
  1. local p = peripheral.wrap("top")
  2. local h = fs.open("listPlayers", "a")
  3. while true do
  4.   for _,table in pairs(p.getPlayers()) do
  5.     for key,value in pairs(table) do
  6.       if key == "name" then
  7.         if value ~= "MrCraftCod" and value ~= "Loky387" then
  8.           h.write(value.." at "..os.time().." day "..os.day())
  9.           h.write("\n")
  10.           h.flush()
  11.         end
  12.       end
  13.     end
  14.   end
  15.   print("Scan finished... Waiting for another loop")
  16.   sleep(1)
  17. end
  18. h.flush()
  19. h.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement