1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2025-07-05 15:14:44 +02:00

Finished fixing issues , , , and .

This commit is contained in:
U-YUE\Sean
2012-10-30 13:14:22 -07:00
parent ab7a83b37e
commit 9354831729
5 changed files with 66 additions and 0 deletions
src/main/java/com/gmail/nossr50

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