Package me.kzlyth.api.history
package me.kzlyth.api.history
API package for retrieving punishment history entries from Zenith-Mod.
This package contains the HistoryAPI class,
which provides methods to access history entries (punishment cases) including:
- Complete history for a user
- History filtered by punishment type
- History filtered by date range
- History entries by case ID
- Active punishments only
- History entries by staff member
Database Compatibility: All methods in this API are fully compatible with H2, SQLite, MySQL, and MariaDB databases. The API automatically adapts to the configured database type from the configuration file.
Example usage:
ZenithAPI api = ZenithAPI.getInstance();
if (api != null) {
HistoryAPI historyAPI = api.getHistoryAPI();
UUID uuid = UUID.fromString("123e4567-e89b-12d3-a456-426614174000");
historyAPI.getHistory(uuid).thenAccept(history -> {
getLogger().info("User has " + history.size() + " history entries");
});
}
- Seit:
- 1.2.3
- Autor:
- Zenith-Studios
-
KlassenKlasseBeschreibungAPI for retrieving punishment history entries from Zenith-Mod.Represents a history entry (punishment case) retrieved from the database.