mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-07-05 15:14:44 +02:00
src/main/java/com/gmail/nossr50
skills
archery
swords
taming
unarmed
util
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user