Tweaked how we check XP gain permissions.

This commit is contained in:
GJ
2012-06-12 08:10:18 -04:00
parent 534a165c45
commit 975e13d45f
4 changed files with 12 additions and 14 deletions

View File

@ -460,7 +460,9 @@ public class Skills {
* @param xp the amount of XP to gain
*/
public static void xpProcessing(Player player, PlayerProfile profile, SkillType type, int xp) {
profile.addXP(type, xp);
xpCheckSkill(type, player, profile);
if (type.getPermissions(player)) {
profile.addXP(type, xp);
xpCheckSkill(type, player, profile);
}
}
}