diff --git a/src/main/java/me/xpyex/plugin/flywithfood/sponge/implementations/energys/EXPLevelEnergy.java b/src/main/java/me/xpyex/plugin/flywithfood/sponge/implementations/energys/EXPLevelEnergy.java index dc818cd..7569578 100644 --- a/src/main/java/me/xpyex/plugin/flywithfood/sponge/implementations/energys/EXPLevelEnergy.java +++ b/src/main/java/me/xpyex/plugin/flywithfood/sponge/implementations/energys/EXPLevelEnergy.java @@ -7,7 +7,7 @@ public class EXPLevelEnergy implements FlyEnergy { @Override public @NotNull String getName() { - return "EXPLevel"; + return "ExpLevel"; } @Override diff --git a/src/main/java/me/xpyex/plugin/flywithfood/sponge/implementations/energys/EXPPointEnergy.java b/src/main/java/me/xpyex/plugin/flywithfood/sponge/implementations/energys/EXPPointEnergy.java index f819e2a..2a0e36e 100644 --- a/src/main/java/me/xpyex/plugin/flywithfood/sponge/implementations/energys/EXPPointEnergy.java +++ b/src/main/java/me/xpyex/plugin/flywithfood/sponge/implementations/energys/EXPPointEnergy.java @@ -7,17 +7,17 @@ public class EXPPointEnergy implements FlyEnergy { @Override public @NotNull String getName() { - return "EXPPoint"; + return "ExpPoint"; } @Override public void cost(@NotNull Player target, @NotNull Number value) { - target.offer(Keys.TOTAL_EXPERIENCE, Math.max(getNow(target) - value.intValue(), 0)); + target.offer(Keys.EXPERIENCE_SINCE_LEVEL, Math.max(getNow(target) - value.intValue(), 0)); } @Override public @NotNull Integer getNow(Player target) { - return target.get(Keys.TOTAL_EXPERIENCE).get(); + return target.get(Keys.EXPERIENCE_SINCE_LEVEL).get(); } @Override