diff --git a/plugins/civmodcore-paper/src/main/java/org/bukkit/pseudo/PseudoServer.java b/plugins/civmodcore-paper/src/main/java/org/bukkit/pseudo/PseudoServer.java index df3f58cb7..64f107715 100644 --- a/plugins/civmodcore-paper/src/main/java/org/bukkit/pseudo/PseudoServer.java +++ b/plugins/civmodcore-paper/src/main/java/org/bukkit/pseudo/PseudoServer.java @@ -68,6 +68,7 @@ import org.checkerframework.checker.nullness.qual.NonNull; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; +@SuppressWarnings("deprecation") public class PseudoServer implements Server { public static final PseudoServer INSTANCE = new PseudoServer(); diff --git a/plugins/civmodcore-paper/src/main/java/vg/civcraft/mc/civmodcore/inventory/items/EnchantUtils.java b/plugins/civmodcore-paper/src/main/java/vg/civcraft/mc/civmodcore/inventory/items/EnchantUtils.java index 1260dea96..c94e2d7bc 100644 --- a/plugins/civmodcore-paper/src/main/java/vg/civcraft/mc/civmodcore/inventory/items/EnchantUtils.java +++ b/plugins/civmodcore-paper/src/main/java/vg/civcraft/mc/civmodcore/inventory/items/EnchantUtils.java @@ -135,6 +135,7 @@ public final class EnchantUtils { * @param value The value to search for a matching enchantment by. * @return Returns a matched enchantment or null. */ + @SuppressWarnings("deprecation") public static Enchantment getEnchantment(final String value) { if (Strings.isNullOrEmpty(value)) { return null; @@ -143,8 +144,7 @@ public final class EnchantUtils { if (enchantment != null) { return enchantment; } - //noinspection deprecation - enchantment = Enchantment.getByName(value.toUpperCase()); + enchantment = Enchantment.getByName(value.toUpperCase()); // deprecated if (enchantment != null) { return enchantment; }