Skip to content
This repository was archived by the owner on Oct 29, 2025. It is now read-only.
Jenya705 edited this page Oct 10, 2021 · 8 revisions

Player object represents online player, inherits from offline player and command sender

Fields

Field name Field description
uuid Player unique id
location Player location
name Player name

Methods

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

Concepts

Player id

Player id is name or uuid of a player. UUID can be typed without dashes

Player selector

  • @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

JSON Example

{
  "name": "Jenya705",
  "uuid": "ca78e928-484b-36ff-bc1e-ade3e86597df",
  "location": {
    "world": "overworld",
    "x": 2840.8328192467225,
    "y": 67.8749909892947,
    "z": -1398.2173892822427
  }
}

Clone this wiki locally