Skip to content

Commit

Permalink
fix: don't allow overlapping plot areas
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreSchwang committed Sep 1, 2024
1 parent d39a40f commit f3e16ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Core/src/main/java/com/plotsquared/core/command/Area.java
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ public boolean onCommand(final PlotPlayer<?> player, String[] args) {
CuboidRegion.makeCuboid(playerSelectedRegion)
).length != 0) {
player.sendMessage(TranslatableCaption.of("single.single_area_overlapping"));
return false;
}
// Alter the region
final BlockVector3 playerSelectionMin = playerSelectedRegion.getMinimumPoint();
Expand Down

0 comments on commit f3e16ac

Please sign in to comment.