Deprecate method

This commit is contained in:
Len 2024-02-11 16:16:03 +01:00
parent e546a8f748
commit 71ad69479f

View File

@ -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);