minsto

sensorplayer

Oct 24th, 2016
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.22 KB | None | 0 0
  1. p = peripheral.find("playerSensor") --Wrapping the peripheral
  2. if p then
  3.   data = p.getAllPlayers() --Getting all the players currently online
  4.   for k,v in pairs(data) do
  5.     print(tostring(k)..": "..tostring(v))
  6.   end
  7. end
Advertisement
Add Comment
Please, Sign In to add comment