Removed needs for SkillType.ALL

Also apparently made /Skillreset work on offline players and fixed
missing permissions check
This commit is contained in:
bm01
2013-02-04 16:33:34 +01:00
parent 458f7f5f5b
commit 35cdcb62b7
17 changed files with 379 additions and 346 deletions

View File

@ -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));
}
/**