Package com.tomkeuper.bedwars.api.stats
Interface IStatsManager
public interface IStatsManager
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addBedBreak
(org.bukkit.entity.Player player) Adds a bed break to the player's stats.void
addFinalDeath
(org.bukkit.entity.Player player) Adds a final player death to the player's stats.void
addFinalKill
(org.bukkit.entity.Player player) Adds a final kill to the player's stats.void
addGamesPlayed
(org.bukkit.entity.Player player) Adds a game played to the player's stats.void
addLoss
(org.bukkit.entity.Player player) Adds a loss to the player's stats.void
addPlayerDeath
(org.bukkit.entity.Player player) Adds a player death to the player's stats.void
addPlayerKill
(org.bukkit.entity.Player player) Gets the stats of a player by their Player object.void
addWin
(org.bukkit.entity.Player player) Adds a win to the player's stats.@NotNull IPlayerStats
Gets the stats of a player by their UUID.@Nullable IPlayerStats
Gets the stats of a player by their UUID, may return null if the player does not exist.
-
Method Details
-
get
Gets the stats of a player by their UUID.- Parameters:
uuid
- the UUID of the player- Returns:
- the player's stats, never null
-
getUnsafe
Gets the stats of a player by their UUID, may return null if the player does not exist.- Parameters:
uuid
- the UUID of the player- Returns:
- the player's stats, may be null
-
addPlayerKill
void addPlayerKill(org.bukkit.entity.Player player) Gets the stats of a player by their Player object.- Parameters:
player
- the Player object
-
addFinalKill
void addFinalKill(org.bukkit.entity.Player player) Adds a final kill to the player's stats.- Parameters:
player
- the Player object
-
addPlayerDeath
void addPlayerDeath(org.bukkit.entity.Player player) Adds a player death to the player's stats.- Parameters:
player
- the Player object
-
addFinalDeath
void addFinalDeath(org.bukkit.entity.Player player) Adds a final player death to the player's stats.- Parameters:
player
- the Player object
-
addBedBreak
void addBedBreak(org.bukkit.entity.Player player) Adds a bed break to the player's stats.- Parameters:
player
- the Player object
-
addWin
void addWin(org.bukkit.entity.Player player) Adds a win to the player's stats.- Parameters:
player
- the Player object
-
addLoss
void addLoss(org.bukkit.entity.Player player) Adds a loss to the player's stats.- Parameters:
player
- the Player object
-
addGamesPlayed
void addGamesPlayed(org.bukkit.entity.Player player) Adds a game played to the player's stats.- Parameters:
player
- the Player object
-