Interface XPrisonHistoryAPI
public interface XPrisonHistoryAPI
API for interacting with player history within the XPrison plugin.
Provides methods for retrieving and creating
HistoryLine
entries
related to specific XPrisonModule
s and players.-
Method Summary
Modifier and TypeMethodDescriptioncreateHistoryLine
(org.bukkit.OfflinePlayer player, XPrisonModule module, String context) Creates a new history line entry for the specified player, associated with the provided module and context.getPlayerHistory
(org.bukkit.OfflinePlayer player) Retrieves all history lines associated with the given player across all modules.getPlayerHistory
(org.bukkit.OfflinePlayer player, XPrisonModule module) Retrieves the history lines associated with the given player and a specific module.
-
Method Details
-
getPlayerHistory
Retrieves all history lines associated with the given player across all modules.- Parameters:
player
- theOfflinePlayer
whose history is being requested- Returns:
- a
Collection
ofHistoryLine
representing the player's full history
-
getPlayerHistory
Retrieves the history lines associated with the given player and a specific module.- Parameters:
player
- theOfflinePlayer
whose history is being requestedmodule
- theXPrisonModule
to filter history lines by- Returns:
- a
Collection
ofHistoryLine
filtered by the specified module
-
createHistoryLine
HistoryLine createHistoryLine(org.bukkit.OfflinePlayer player, XPrisonModule module, String context) Creates a new history line entry for the specified player, associated with the provided module and context.- Parameters:
player
- theOfflinePlayer
for whom the history line is createdmodule
- theXPrisonModule
that the history line is associated withcontext
- aString
describing the context or reason for the history entry- Returns:
- the created
HistoryLine
-