You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's a better way to get all classes of the player if you want more than their current ones (primary, secondary and race) as well as mastered.
Set<HeroClass> loadedClasses = this.plugin.getClassManager().getClasses();
if (loadedClasses != null) {
//Get classes the hero has been and leveledArrayList<String> leveledClasses = newArrayList<>();
for (HeroClassheroClass : loadedClasses) {
if (hero.getExperience(heroClass) > 0) {
leveledClasses.add(heroClass.getName());
}
}
}
There's a better way to get all classes of the player if you want more than their current ones (primary, secondary and race) as well as mastered.
Message in Discord
The text was updated successfully, but these errors were encountered: