From d8a85ad3ca211a8ff90bf585b8c802a81fcd42b1 Mon Sep 17 00:00:00 2001 From: Alessandro Date: Sat, 27 Dec 2025 14:07:11 +0100 Subject: [PATCH] fix: minePlots integration --- .../github/nighter/smartspawner/hooks/IntegrationManager.java | 4 ++-- .../nighter/smartspawner/hooks/protections/api/MinePlots.java | 2 +- core/src/main/resources/paper-plugin.yml | 2 +- core/src/main/resources/plugin.yml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/src/main/java/github/nighter/smartspawner/hooks/IntegrationManager.java b/core/src/main/java/github/nighter/smartspawner/hooks/IntegrationManager.java index 37269b03..9bea9161 100644 --- a/core/src/main/java/github/nighter/smartspawner/hooks/IntegrationManager.java +++ b/core/src/main/java/github/nighter/smartspawner/hooks/IntegrationManager.java @@ -108,8 +108,8 @@ private void checkProtectionPlugins() { return pRP != null && pRP.isEnabled(); }, true); - hasMinePlots = checkPlugin("MinePlots", () -> { - Plugin mP = Bukkit.getPluginManager().getPlugin("MinePlots"); + hasMinePlots = checkPlugin("minePlots", () -> { + Plugin mP = Bukkit.getPluginManager().getPlugin("minePlots"); return mP != null && mP.isEnabled(); }, true); diff --git a/core/src/main/java/github/nighter/smartspawner/hooks/protections/api/MinePlots.java b/core/src/main/java/github/nighter/smartspawner/hooks/protections/api/MinePlots.java index 18a8861a..d4c74201 100644 --- a/core/src/main/java/github/nighter/smartspawner/hooks/protections/api/MinePlots.java +++ b/core/src/main/java/github/nighter/smartspawner/hooks/protections/api/MinePlots.java @@ -27,7 +27,7 @@ public static boolean check(@NotNull Player player, @NotNull Location location) if(serviceProvider == null) return true; PlotApi plot = serviceProvider.getProvider().getPlot(location); if (plot != null) { - plot.hasAccess(player); + return plot.hasAccess(player); } // Player is not in plot return true; diff --git a/core/src/main/resources/paper-plugin.yml b/core/src/main/resources/paper-plugin.yml index 231105fc..04639f3d 100644 --- a/core/src/main/resources/paper-plugin.yml +++ b/core/src/main/resources/paper-plugin.yml @@ -85,7 +85,7 @@ dependencies: load: BEFORE required: false join-classpath: true - MinePlots: + minePlots: load: BEFORE required: false join-classpath: true diff --git a/core/src/main/resources/plugin.yml b/core/src/main/resources/plugin.yml index 01b75df3..1c896ad6 100644 --- a/core/src/main/resources/plugin.yml +++ b/core/src/main/resources/plugin.yml @@ -27,7 +27,7 @@ softdepend: - Towny - SimpleClaimSystem - RedProtect - - MinePlots + - minePlots - PlotSquared - Residence