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