mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-26 10:44:43 +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:
@ -18,12 +18,7 @@ public final class ExperienceAPI {
|
||||
* @deprecated Calling this function is no longer needed and should be avoided
|
||||
*/
|
||||
private static void checkXP(Player player, SkillType skillType) {
|
||||
if (skillType.equals(SkillType.ALL)) {
|
||||
SkillTools.xpCheckAll(player, Users.getProfile(player));
|
||||
}
|
||||
else {
|
||||
SkillTools.xpCheckSkill(skillType, player, Users.getProfile(player));
|
||||
}
|
||||
SkillTools.xpCheckSkill(skillType, player, Users.getProfile(player));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user