mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-07-17 04:54:42 +02:00
Removed needs for SkillType.ALL
Also apparently made /Skillreset work on offline players and fixed missing permissions check
This commit is contained in:
@ -275,23 +275,6 @@ public class SkillTools {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Check XP of all skills.
|
||||
*
|
||||
* @param player The player to check XP for.
|
||||
* @param profile The profile of the player whose skill to check
|
||||
*/
|
||||
public static void xpCheckAll(Player player, PlayerProfile profile) {
|
||||
for (SkillType skillType : SkillType.values()) {
|
||||
//Don't want to do anything with this one
|
||||
if (skillType == SkillType.ALL || skillType.isChildSkill()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
xpCheckSkill(skillType, player, profile);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the skill represented by the given string
|
||||
*
|
||||
|
Reference in New Issue
Block a user