Player Sensor


The Player Sensor is a peripheral which allows a computer to detect players. It can be crafted with a Turtle to get an Player Noticing Turtle.

Events

Event Parameter 1 Parameter 2 Description
player "player" string playerName This event is called when a player right clicks upon the peripheral

Functions

Function Returns Description
getNearbyPlayers(number range) table players Returns nearby players in the form of a table, this table contains other tables with the keys "player" and "distance"
getAllPlayers(boolean limitToCurrentWorld) table players Returns a list of all players currently on the server (or within the current world if set to)