mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-04 02:53:43 +01:00 
			
		
		
		
	We've got these functions, might as well use them.
This commit is contained in:
		@@ -506,11 +506,7 @@ public final class ExperienceAPI {
 | 
			
		||||
        int powerLevel = 0;
 | 
			
		||||
        PlayerProfile profile = getOfflineProfile(playerName);
 | 
			
		||||
 | 
			
		||||
        for (SkillType type : SkillType.values()) {
 | 
			
		||||
            if (type.isChildSkill()) {
 | 
			
		||||
                continue;
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
        for (SkillType type : SkillType.nonChildSkills()) {
 | 
			
		||||
            powerLevel += profile.getSkillLevel(type);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user