Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local p = peripheral.wrap("top")
- local h = fs.open("listPlayers", "a")
- while true do
- for _,table in pairs(p.getPlayers()) do
- for key,value in pairs(table) do
- if key == "name" then
- if value ~= "MrCraftCod" and value ~= "Loky387" then
- h.write(value.." at "..os.time().." day "..os.day())
- h.write("\n")
- h.flush()
- end
- end
- end
- end
- print("Scan finished... Waiting for another loop")
- sleep(1)
- end
- h.flush()
- h.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement