Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/resources/paper-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ dependencies:
load: BEFORE
required: false
join-classpath: true
MinePlots:
minePlots:
load: BEFORE
required: false
join-classpath: true
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ softdepend:
- Towny
- SimpleClaimSystem
- RedProtect
- MinePlots
- minePlots
- PlotSquared
- Residence

Expand Down