Skip to content

Commit

Permalink
Display the selected size volume of a selected region if it's too big.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew121410 committed Sep 9, 2024
1 parent 863e24b commit 15e1fc4
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ public boolean onCommand(CommandSender sender, Command cmd, String label, String
int maxSizeOfElevator = this.plugin.getMaxSizeOfElevator();
if (region.getVolume() > maxSizeOfElevator) {
player.sendMessage(Translate.miniMessage("<red>The region you selected is too big. The max size is: <white>" + maxSizeOfElevator));
player.sendMessage(Translate.miniMessage("<red>The region you selected size is: <white>" + region.getVolume()));
return true;
}

Expand Down

0 comments on commit 15e1fc4

Please # to comment.