From c72ead9d0af67de1f7da528fc9b95a501a6f6b9f Mon Sep 17 00:00:00 2001 From: TfT_02 Date: Mon, 30 Sep 2013 19:03:44 +0200 Subject: [PATCH] Prevent breaking other plugins who use this API --- src/main/java/com/gmail/nossr50/api/ExperienceAPI.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/com/gmail/nossr50/api/ExperienceAPI.java b/src/main/java/com/gmail/nossr50/api/ExperienceAPI.java index 97587c2de..d05d8dcf1 100644 --- a/src/main/java/com/gmail/nossr50/api/ExperienceAPI.java +++ b/src/main/java/com/gmail/nossr50/api/ExperienceAPI.java @@ -48,6 +48,11 @@ public final class ExperienceAPI { return !skill.isChildSkill(); } + @Deprecated + public static void addRawXP(Player player, String skillType, int XP) { + addRawXP(player, skillType, XP); + } + /** * Adds raw XP to the player. *
@@ -63,6 +68,11 @@ public final class ExperienceAPI { 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. *