dependencies & stuff
This commit is contained in:
parent
bf13f7e2b9
commit
4ab4a1bec4
3 changed files with 72 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue