mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-27 19:24:44 +02:00
Tweaked how we check XP gain permissions.
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user