diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/BukkitPlatform.java b/Bukkit/src/main/java/com/plotsquared/bukkit/BukkitPlatform.java index 72d2bf736..ee5bb33db 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/BukkitPlatform.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/BukkitPlatform.java @@ -252,6 +252,7 @@ public final class BukkitPlatform extends JavaPlugin implements Listener, PlotPl } @Override + @SuppressWarnings("deprecation") // Paper deprecation public void onEnable() { this.pluginName = getDescription().getName(); @@ -1160,6 +1161,7 @@ public final class BukkitPlatform extends JavaPlugin implements Listener, PlotPl return new BukkitPlotGenerator(world, generator, this.plotAreaManager); } + @SuppressWarnings("deprecation") // Paper deprecation @Override public @NonNull String pluginsFormatted() { StringBuilder msg = new StringBuilder(); @@ -1181,7 +1183,7 @@ public final class BukkitPlatform extends JavaPlugin implements Listener, PlotPl } @Override - @SuppressWarnings("ConstantConditions") + @SuppressWarnings({"ConstantConditions", "deprecation"}) // Paper deprecation public @NonNull String worldEditImplementations() { StringBuilder msg = new StringBuilder(); if (Bukkit.getPluginManager().getPlugin("FastAsyncWorldEdit") != null) { diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/entity/ReplicatingEntityWrapper.java b/Bukkit/src/main/java/com/plotsquared/bukkit/entity/ReplicatingEntityWrapper.java index 183710a8e..d8167333b 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/entity/ReplicatingEntityWrapper.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/entity/ReplicatingEntityWrapper.java @@ -74,6 +74,7 @@ public final class ReplicatingEntityWrapper extends EntityWrapper { private HorseStats horse; private boolean noGravity; + @SuppressWarnings("deprecation") // Deprecation exists since 1.20, while we support 1.16 onwards public ReplicatingEntityWrapper(Entity entity, short depth) { super(entity); diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/listener/PlayerEventListener.java b/Bukkit/src/main/java/com/plotsquared/bukkit/listener/PlayerEventListener.java index c32344cbf..e229adcdc 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/listener/PlayerEventListener.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/listener/PlayerEventListener.java @@ -369,6 +369,7 @@ public class PlayerEventListener implements Listener { } @EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true) + @SuppressWarnings("deprecation") // Paper deprecation public void onConnect(PlayerJoinEvent event) { final Player player = event.getPlayer(); PlotSquared.platform().playerManager().removePlayer(player.getUniqueId()); @@ -733,6 +734,7 @@ public class PlayerEventListener implements Listener { } @EventHandler(priority = EventPriority.LOW) + @SuppressWarnings("deprecation") // Paper deprecation public void onChat(AsyncPlayerChatEvent event) { if (event.isCancelled()) { return; @@ -1063,6 +1065,7 @@ public class PlayerEventListener implements Listener { } @EventHandler(priority = EventPriority.LOW) + @SuppressWarnings("deprecation") // Paper deprecation public void onCancelledInteract(PlayerInteractEvent event) { if (event.isCancelled() && event.getAction() == Action.RIGHT_CLICK_AIR) { Player player = event.getPlayer(); diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/util/BukkitInventoryUtil.java b/Bukkit/src/main/java/com/plotsquared/bukkit/util/BukkitInventoryUtil.java index 3d2565fc5..c13675e43 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/util/BukkitInventoryUtil.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/util/BukkitInventoryUtil.java @@ -44,6 +44,7 @@ import java.util.stream.IntStream; @Singleton public class BukkitInventoryUtil extends InventoryUtil { + @SuppressWarnings("deprecation") // Paper deprecation private static @Nullable ItemStack getItem(PlotItemStack item) { if (item == null) { return null; diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/util/BukkitSetupUtils.java b/Bukkit/src/main/java/com/plotsquared/bukkit/util/BukkitSetupUtils.java index 88ede2cc5..5ce91a667 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/util/BukkitSetupUtils.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/util/BukkitSetupUtils.java @@ -67,6 +67,7 @@ public class BukkitSetupUtils extends SetupUtils { this.worldFile = worldFile; } + @SuppressWarnings("deprecation") // Paper deprecation @Override public void updateGenerators(final boolean force) { if (loaded && !SetupUtils.generators.isEmpty() && !force) {