Nightbreak Java API
Toggle table of contents
JVM
Target filter
JVM
Switch theme
Search in API
Skip to content
Nightbreak Java API
MagmaCore
/
com.magmaguy.magmacore.match
/
MatchPlayer
Match
Player
public
class
MatchPlayer
One participant of one match. Plugins subclass it through
createPlayer
.
Members
Constructors
Match
Player
Link copied to clipboard
protected
void
MatchPlayer
(
Player
player
,
Match
match
)
Properties
leave
Reason
Link copied to clipboard
public
LeaveReason
leaveReason
lives
Link copied to clipboard
public
int
lives
match
Link copied to clipboard
public
final
Match
match
player
Link copied to clipboard
public
final
Player
player
previous
Game
Mode
Link copied to clipboard
public
final
GameMode
previousGameMode
previous
Location
Link copied to clipboard
public
final
Location
previousLocation
role
Link copied to clipboard
public
MatchRole
role
Functions
get
Leave
Reason
Link copied to clipboard
public
LeaveReason
getLeaveReason
(
)
get
Lives
Link copied to clipboard
public
int
getLives
(
)
get
Match
Link copied to clipboard
public
Match
getMatch
(
)
get
Player
Link copied to clipboard
public
Player
getPlayer
(
)
get
Previous
Game
Mode
Link copied to clipboard
public
GameMode
getPreviousGameMode
(
)
get
Previous
Location
Link copied to clipboard
public
Location
getPreviousLocation
(
)
get
Role
Link copied to clipboard
public
MatchRole
getRole
(
)
get
Unique
Id
Link copied to clipboard
public
UUID
getUniqueId
(
)
has
Entered
Link copied to clipboard
public
boolean
hasEntered
(
)
Whether the entry teleport has put this player into the match yet.
teleport
Link copied to clipboard
protected
boolean
teleport
(
Location
destination
,
MoveReason
reason
)
Moves the player.