Package me.kzlyth.api.statistics


package me.kzlyth.api.statistics
API package for retrieving statistics from Zenith-Mod.

This package contains the StatisticsAPI class, which provides access to specialized sub-APIs for different types of statistics:

Example usage:


 ZenithAPI api = ZenithAPI.getInstance();
 if (api != null) {
     StatisticsAPI statisticsAPI = api.getStatisticsAPI();
     
     // Get global statistics
     GlobalStatisticsAPI globalStats = statisticsAPI.getGlobalStatistics();
     globalStats.getTotalUsers().thenAccept(total -> {
         getLogger().info("Total registered users: " + total);
     });
     
     // Get user statistics
     UserStatisticsAPI userStats = statisticsAPI.getUserStatistics();
     UUID uuid = UUID.fromString("123e4567-e89b-12d3-a456-426614174000");
     userStats.getPunishmentCount(uuid).thenAccept(count -> {
         getLogger().info("User has " + count + " total punishments");
     });
 }
 
Seit:
1.2.3
Autor:
Zenith-Studios