From 71ad69479fc17c6475e9eadd1430dce58920cb1a Mon Sep 17 00:00:00 2001 From: Len <40720638+destro174@users.noreply.github.com> Date: Sun, 11 Feb 2024 16:16:03 +0100 Subject: [PATCH] Deprecate method --- .../src/main/java/com/alttd/cometskyblock/util/Experience.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin/src/main/java/com/alttd/cometskyblock/util/Experience.java b/plugin/src/main/java/com/alttd/cometskyblock/util/Experience.java index f0438f6..3ba3e98 100644 --- a/plugin/src/main/java/com/alttd/cometskyblock/util/Experience.java +++ b/plugin/src/main/java/com/alttd/cometskyblock/util/Experience.java @@ -99,6 +99,7 @@ public final class Experience { } /** + * DO NOT USE -- causes incorrect updates and floating errors * Change a Player's experience. * *

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