Finished fixing issues #272, #266, #261, and #255.

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

View File

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