Deprecate method
This commit is contained in:
parent
e546a8f748
commit
71ad69479f
|
|
@ -99,6 +99,7 @@ public final class Experience {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* DO NOT USE -- causes incorrect updates and floating errors
|
||||||
* Change a Player's experience.
|
* Change a Player's experience.
|
||||||
*
|
*
|
||||||
* <p>This method is preferred over {@link Player#giveExp(int)}.
|
* <p>This method is preferred over {@link Player#giveExp(int)}.
|
||||||
|
|
@ -111,6 +112,7 @@ public final class Experience {
|
||||||
* @param player the Player affected
|
* @param player the Player affected
|
||||||
* @param exp the amount of experience to add or remove
|
* @param exp the amount of experience to add or remove
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public static void changeExp(Player player, int exp) {
|
public static void changeExp(Player player, int exp) {
|
||||||
exp += getExp(player);
|
exp += getExp(player);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user