public interface MatchPlayer
The MatchPlayer interface represents a player participating in a match or game. It provides
methods to access various information about the player's status and performance.
-
Method Summary
default org.bukkit.entity.Player
int
Retrieves the number of deaths experienced by the player.
int
Retrieves the number of kills attributed to the player.
String
Retrieves the name of the player.
org.bukkit.Location
Retrieves the spawn location of the player.
UUID
Retrieves the unique identifier of the player.
boolean
Checks whether the player is currently alive.
boolean
Checks whether the player is disconnected from the match.
-
Method Details
-
getUniqueId
UUID getUniqueId()
Retrieves the unique identifier of the player.
- Returns:
- The UUID (Universally Unique Identifier) of the player.
-
getName
String getName()
Retrieves the name of the player.
- Returns:
- The name of the player.
-
getSpawnLocation
org.bukkit.Location getSpawnLocation()
Retrieves the spawn location of the player.
- Returns:
- The spawn location where the player appears in the match.
-
isAlive
boolean isAlive()
Checks whether the player is currently alive.
- Returns:
- `true` if the player is alive, `false` if not.
-
isDisconnected
boolean isDisconnected()
Checks whether the player is disconnected from the match.
- Returns:
- `true` if the player is disconnected, `false` if connected.
-
getKills
int getKills()
Retrieves the number of kills attributed to the player.
- Returns:
- The count of kills the player has achieved.
-
getDeaths
int getDeaths()
Retrieves the number of deaths experienced by the player.
- Returns:
- The count of deaths the player has suffered.
-
bukkit
default org.bukkit.entity.Player bukkit()