This repository was archived by the owner on Oct 29, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Player
Jenya705 edited this page Oct 15, 2021
·
8 revisions
Player object represents online player, inherits from offline player and command sender
| Field name | Field description |
|---|---|
| uuid | Player unique id |
| location | Player location |
| name | Player name |
| Method name | Method description |
|---|---|
| sendMessage(message) | Sends message to a player |
| kick(reason) | Kicks a player |
| ban(reason) | Bans a player |
| hasPermission(name) | Checks if player has permission |
Player id is name or uuid of a player. UUID can be typed without dashes
- @a - all online players selector
- @r - random player selector
- @l - all online players which are linked with bot requesting selector
- default - equals to player id
{
"name": "Jenya705",
"uuid": "ca78e928-484b-36ff-bc1e-ade3e86597df",
"type": "player",
"location": {
"world": "overworld",
"x": 2840.8328192467225,
"y": 67.8749909892947,
"z": -1398.2173892822427
}
}