mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-29 08:36:45 +01:00
Prevent breaking other plugins who use this API
This commit is contained in:
parent
4262a1b2a5
commit
c72ead9d0a
@ -48,6 +48,11 @@ public final class ExperienceAPI {
|
|||||||
return !skill.isChildSkill();
|
return !skill.isChildSkill();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
|
public static void addRawXP(Player player, String skillType, int XP) {
|
||||||
|
addRawXP(player, skillType, XP);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds raw XP to the player.
|
* Adds raw XP to the player.
|
||||||
* </br>
|
* </br>
|
||||||
@ -63,6 +68,11 @@ public final class ExperienceAPI {
|
|||||||
UserManager.getPlayer(player).applyXpGain(getSkillType(skillType), XP);
|
UserManager.getPlayer(player).applyXpGain(getSkillType(skillType), XP);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
|
public static void addRawXPOffline(String playerName, String skillType, int XP) {
|
||||||
|
addRawXPOffline(playerName, skillType, XP);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds raw XP to an offline player.
|
* Adds raw XP to an offline player.
|
||||||
* </br>
|
* </br>
|
||||||
|
Loading…
Reference in New Issue
Block a user