Private
constructorCreates a new bounty.
The properties of the bounty.
Optional
creationTime?: numberThe creation time of this bounty. Defaults to the current time.
Optional
id?: undefinedThe unique identifier of this bounty.
Optional
new?: trueWhether this bounty is new. Defaults to true.
The UUID of the player who placed this bounty.
Optional
status?: undefinedThe status of this bounty. Defaults to undefined.
The UUID of the target of this bounty.
Optional
valid?: undefinedWhether this bounty is valid. Defaults to undefined.
The value of this bounty.
The creation time of this bounty. Defaults to the current time.
Readonly
id: bigintThe unique identifier of this bounty.
Whether this bounty is new. Defaults to true.
The UUID of the player who placed this bounty.
The status of this bounty. Defaults to undefined.
The UUID of the target of this bounty.
Whether this bounty is valid. Defaults to undefined.
The value of this bounty.
The creation time of this bounty.
Readonly
idThe unique identifier of this bounty.
The UUID of the player who placed this bounty.
The status of this bounty.
The UUID of the target of this bounty.
Whether this bounty is valid.
The value of this bounty.
Cancels this bounty.
Whether this bounty was canceled.
Claims this bounty.
The player who claimed this bounty.
Whether this bounty was claimed.
Deletes this bounty.
Whether this bounty was deleted.
Gets a savedPlayer instance for the source of this bounty.
The saved player instance for the source of this bounty, or undefined if the source of this bounty has not been saved.
Gets a savedPlayer instance for the target of this bounty.
The saved player instance for the target of this bounty, or undefined if the target of this bounty has not been saved.
Private
initInitializes this bounty.
Converts this bounty to a JSONB serializable object.
Static
getStatic
getStatic
getStatic
getStatic
loadStatic
placePlaces a bounty on the specified player.
The bounty value.
The player's UUID.
The target's UUID.
Optional
playerDisplayName: stringThe player's display name.
Optional
targetDisplayName: stringThe target's display name.
Optional
silent: boolean = falseIf set to true, will not notify all online players of the bounty. Defaults to false.
Optional
chargePlayer: boolean = trueWhether to charge the player for the bounty. Defaults to true.
Optional
creationTime: number = ...The creation time of the bounty. Defaults to the current time.
The created bounty.
If chargePlayer is true
and the player does not have enough money to place the bounty.
Static
saveSaves all loaded bounties.
Represents a bounty.