Team Object
| Property | Type | Description |
|---|---|---|
id | String | The unique identifier of the team |
name | String | The name of the team |
description | String | The description of the team (DEPRECATED) |
members | List<Object> | The list of members in the team |
leader | Object | The team leader |
bank | Integer | The amount of money in the team bank (DEPRECATED) |
kills | Integer | The number of kills the team has |
deaths | Integer | The number of deaths the team has |
home | Location | The home location of the team (DEPRECATED) |
warps | HashMap<String, Location> | The list of warps for the team (DEPRECATED) |
invited | List<Player> | The list of players invited to the team |
Each of the above has a getter and setter method, e.g. getName() and setName(String name).
Example:
| Function | Return Type | Description |
|---|---|---|
hasPlayer(UUID) | boolean | Checks if a player is in the team by their UUID |
hasPlayer(Player) | boolean | Checks if a player is in the team by their Player object |
addKill() | void | Increments the team’s kill count by 1 |
addDeath() | void | Increments the team’s death count by 1 |
isInvited(Player) | boolean | Checks if a player is invited to the team |
addInvited(Player) | Team | Adds a player to the invited list |
removeInvited(Player) | Team | Removes a player from the invited list |
messageAll(String) | Team | Sends a message to all team members (colour codes supported with ’&‘) |
I’m nice so I’ll show you how to get the player from the Object
Bounty Object
| Property | Type | Description |
|---|---|---|
id | String | Unique identifier of the bounty |
target | UUID | UUID of the target player |
owner | UUID | UUID of the bounty owner (original creator) |
amount | int | FULL bounty amount |
claimed | boolean | If the bounty has been claimed (completed) |
createdAt | long | System time in milliseconds when the bounty was created |
claimedAt | long | System time in milliseconds when the bounty was claimed |
reason | String | The bounty reason |
Each of the above has a getter and setter method, e.g. getName() and setName(String name).