Skip to content

Commit d8a85ad

Browse files
committed
fix: minePlots integration
1 parent 8fe0298 commit d8a85ad

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

core/src/main/java/github/nighter/smartspawner/hooks/IntegrationManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ private void checkProtectionPlugins() {
108108
return pRP != null && pRP.isEnabled();
109109
}, true);
110110

111-
hasMinePlots = checkPlugin("MinePlots", () -> {
112-
Plugin mP = Bukkit.getPluginManager().getPlugin("MinePlots");
111+
hasMinePlots = checkPlugin("minePlots", () -> {
112+
Plugin mP = Bukkit.getPluginManager().getPlugin("minePlots");
113113
return mP != null && mP.isEnabled();
114114
}, true);
115115

core/src/main/java/github/nighter/smartspawner/hooks/protections/api/MinePlots.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static boolean check(@NotNull Player player, @NotNull Location location)
2727
if(serviceProvider == null) return true;
2828
PlotApi plot = serviceProvider.getProvider().getPlot(location);
2929
if (plot != null) {
30-
plot.hasAccess(player);
30+
return plot.hasAccess(player);
3131
}
3232
// Player is not in plot
3333
return true;

core/src/main/resources/paper-plugin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ dependencies:
8585
load: BEFORE
8686
required: false
8787
join-classpath: true
88-
MinePlots:
88+
minePlots:
8989
load: BEFORE
9090
required: false
9191
join-classpath: true

core/src/main/resources/plugin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ softdepend:
2727
- Towny
2828
- SimpleClaimSystem
2929
- RedProtect
30-
- MinePlots
30+
- minePlots
3131
- PlotSquared
3232
- Residence
3333

0 commit comments

Comments
 (0)