dependencies & stuff

This commit is contained in:
LunarAkai 2024-04-14 20:59:46 +02:00
commit 4ab4a1bec4
3 changed files with 72 additions and 1 deletions

View file

@ -30,7 +30,12 @@ public final class MinecleanerPlugin extends JavaPlugin {
}
public void onLateEnable() {
playerUUIDCache = (PlayerUUIDCache) getServer().getPluginManager().getPlugin("PlayerUUIDCache");
if(getServer().getPluginManager().getPlugin("PlayerUUIDCache") != null) {
playerUUIDCache = (PlayerUUIDCache) getServer().getPluginManager().getPlugin("PlayerUUIDCache");
} else {
this.getLogger().log(Level.WARNING, "PlayerUUIDCache not found.");
}
if(getServer().getPluginManager().getPlugin("CubesideStatistics") != null) {
cubesideStatistics = getServer().getServicesManager().load(CubesideStatisticsAPI.class);
} else {