Add-On Documentation
Preparing search index...
The search index is not available
8Crafter's Debug Sticks API
8Crafter's Debug Sticks API
Globals
modules
main
Bounty
Class Bounty
Index
Constructors
constructor
Properties
creation
Time
id
player
Id
status
target
Id
valid
value
Methods
cancel
claim
delete
get
Linked
Source
Saved
Player
get
Linked
Target
Saved
Player
init
toJSONB
get
All
Bounties
get
Bounties
From
Player
get
Bounties
On
Player
get
Merged
Bounties
load
Bounties
place
Bounty
On
Player
save
Bounties
Constructors
Private
constructor
new
Bounty
(
properties
:
|
{
creationTime
?:
number
;
id
?:
undefined
;
new
?:
true
;
playerId
:
string
;
status
?:
undefined
;
targetId
:
string
;
valid
?:
undefined
;
value
:
bigint
;
}
|
{
creationTime
:
number
;
id
:
bigint
;
new
:
false
;
playerId
:
string
;
status
:
"none"
|
"deleted"
|
"claimed"
|
"canceled"
;
targetId
:
string
;
valid
:
boolean
;
value
:
bigint
;
}
,
)
:
Globals
.
modules
.
main
.
Bounty
Parameters
properties
:
|
{
creationTime
?:
number
;
id
?:
undefined
;
new
?:
true
;
playerId
:
string
;
status
?:
undefined
;
targetId
:
string
;
valid
?:
undefined
;
value
:
bigint
;
}
|
{
creationTime
:
number
;
id
:
bigint
;
new
:
false
;
playerId
:
string
;
status
:
"none"
|
"deleted"
|
"claimed"
|
"canceled"
;
targetId
:
string
;
valid
:
boolean
;
value
:
bigint
;
}
Returns
Globals
.
modules
.
main
.
Bounty
Properties
creation
Time
creationTime
:
number
Readonly
id
id
:
bigint
player
Id
playerId
:
string
status
status
:
"none"
|
"deleted"
|
"claimed"
|
"canceled"
= "none"
target
Id
targetId
:
string
valid
valid
:
boolean
= true
value
value
:
bigint
Methods
cancel
cancel
()
:
boolean
Returns
boolean
claim
claim
(
claimer
:
Player
)
:
boolean
Parameters
claimer
:
Player
Returns
boolean
delete
delete
()
:
boolean
Returns
boolean
get
Linked
Source
Saved
Player
getLinkedSourceSavedPlayer
()
:
Globals
.
modules
.
playersave
.
savedPlayer
Returns
Globals
.
modules
.
playersave
.
savedPlayer
get
Linked
Target
Saved
Player
getLinkedTargetSavedPlayer
()
:
Globals
.
modules
.
playersave
.
savedPlayer
Returns
Globals
.
modules
.
playersave
.
savedPlayer
Private
init
init
()
:
Promise
<
void
>
Returns
Promise
<
void
>
toJSONB
toJSONB
()
:
{
creationTime
:
number
;
id
:
bigint
;
playerId
:
string
;
status
:
"none"
|
"deleted"
|
"claimed"
|
"canceled"
;
targetId
:
string
;
valid
:
boolean
;
value
:
bigint
;
}
Returns
{
creationTime
:
number
;
id
:
bigint
;
playerId
:
string
;
status
:
"none"
|
"deleted"
|
"claimed"
|
"canceled"
;
targetId
:
string
;
valid
:
boolean
;
value
:
bigint
;
}
Static
get
All
Bounties
getAllBounties
()
:
Globals
.
modules
.
main
.
Bounty
[]
Returns
Globals
.
modules
.
main
.
Bounty
[]
Static
get
Bounties
From
Player
getBountiesFromPlayer
(
playerId
:
string
)
:
Globals
.
modules
.
main
.
Bounty
[]
Parameters
playerId
:
string
Returns
Globals
.
modules
.
main
.
Bounty
[]
Static
get
Bounties
On
Player
getBountiesOnPlayer
(
targetId
:
string
)
:
Globals
.
modules
.
main
.
Bounty
[]
Parameters
targetId
:
string
Returns
Globals
.
modules
.
main
.
Bounty
[]
Static
get
Merged
Bounties
getMergedBounties
()
:
Globals
.
modules
.
main
.
Bounty
[]
Returns
Globals
.
modules
.
main
.
Bounty
[]
Static
load
Bounties
loadBounties
()
:
void
Returns
void
Static
place
Bounty
On
Player
placeBountyOnPlayer
(
value
:
bigint
,
playerId
:
string
,
targetId
:
string
,
playerDisplayName
?:
string
,
targetDisplayName
?:
string
,
silent
?:
boolean
,
chargePlayer
?:
boolean
,
creationTime
?:
number
,
)
:
void
Parameters
value
:
bigint
playerId
:
string
targetId
:
string
Optional
playerDisplayName
:
string
Optional
targetDisplayName
:
string
silent
:
boolean
= false
chargePlayer
:
boolean
= true
creationTime
:
number
= ...
Returns
void
Static
save
Bounties
saveBounties
()
:
void
Returns
void
Version
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
creation
Time
id
player
Id
status
target
Id
valid
value
Methods
cancel
claim
delete
get
Linked
Source
Saved
Player
get
Linked
Target
Saved
Player
init
toJSONB
get
All
Bounties
get
Bounties
From
Player
get
Bounties
On
Player
get
Merged
Bounties
load
Bounties
place
Bounty
On
Player
save
Bounties
Add-On Documentation
8Crafter's Debug Sticks API
Loading...