Package com.tomkeuper.bedwars.api.stats
Interface IStatsManager
public interface IStatsManager
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddBedBreak(org.bukkit.entity.Player player) Adds a bed break to the player's stats.voidaddFinalDeath(org.bukkit.entity.Player player) Adds a final player death to the player's stats.voidaddFinalKill(org.bukkit.entity.Player player) Adds a final kill to the player's stats.voidaddGamesPlayed(org.bukkit.entity.Player player) Adds a game played to the player's stats.voidaddLoss(org.bukkit.entity.Player player) Adds a loss to the player's stats.voidaddPlayerDeath(org.bukkit.entity.Player player) Adds a player death to the player's stats.voidaddPlayerKill(org.bukkit.entity.Player player) Gets the stats of a player by their Player object.voidaddWin(org.bukkit.entity.Player player) Adds a win to the player's stats.@NotNull IPlayerStatsGets the stats of a player by their UUID.@Nullable IPlayerStatsGets 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
-