Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local detector = peripheral.find("playerDetector")
- if not detector then
- error("Couldn't find the stalker thingie")
- end
- term.clear()
- while true do
- local players = detector.getOnlinePlayers()
- local positions = ""
- for _, player in next, players do
- local position = detector.getPlayerPos(player)
- if not position then
- continue
- end
- positions = positions..string.format("%s: XYZ: %d%d%d", player, position.X, position.Y, position.Z)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement