Package me.kzlyth.api.status


package me.kzlyth.api.status
API package for checking punishment status of players in Zenith-Mod.

This package contains the PunishmentStatusAPI class and PunishmentStatus model, which provide methods to check if players are banned, muted, IP-banned, or IP-muted, as well as retrieve active punishment information and case IDs.

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) {
     PunishmentStatusAPI statusAPI = api.getPunishmentStatusAPI();
     
     UUID uuid = UUID.fromString("123e4567-e89b-12d3-a456-426614174000");
     statusAPI.isBanned(uuid).thenAccept(banned -> {
         getLogger().info("Player is banned: " + banned);
     });
 }
 
Seit:
1.2.3
Autor:
Zenith-Studios
  • Klassen
    Klasse
    Beschreibung
    Represents the punishment status of a player.
    API for checking punishment status of players in Zenith-Mod.