PrivateconstructorCreates a new bounty.
The properties of the bounty.
OptionalcreationTime?: numberThe creation time of this bounty. Defaults to the current time.
Optionalid?: undefinedThe unique identifier of this bounty.
Optionalnew?: trueWhether this bounty is new. Defaults to true.
The UUID of the player who placed this bounty.
Optionalstatus?: undefinedThe status of this bounty. Defaults to undefined.
The UUID of the target of this bounty.
Optionalvalid?: undefinedWhether this bounty is valid. Defaults to undefined.
The value of this bounty.
The creation time of this bounty. Defaults to the current time.
Readonlyid: 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.
ReadonlyidThe 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.
PrivateinitInitializes this bounty.
Converts this bounty to a JSONB serializable object.
StaticgetStaticgetStaticgetStaticgetStaticloadStaticplacePlaces a bounty on the specified player.
The bounty value.
The player's UUID.
The target's UUID.
OptionalplayerDisplayName: stringThe player's display name.
OptionaltargetDisplayName: stringThe target's display name.
Optionalsilent: boolean = falseIf set to true, will not notify all online players of the bounty. Defaults to false.
OptionalchargePlayer: boolean = trueWhether to charge the player for the bounty. Defaults to true.
OptionalcreationTime: 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.
StaticsaveSaves all loaded bounties.
Represents a bounty.