diff --git a/Core/src/main/java/com/plotsquared/core/command/Caps.java b/Core/src/main/java/com/plotsquared/core/command/Caps.java index 2dd72672c..25e912daf 100644 --- a/Core/src/main/java/com/plotsquared/core/command/Caps.java +++ b/Core/src/main/java/com/plotsquared/core/command/Caps.java @@ -64,6 +64,10 @@ public class Caps extends SubCommand { Template.of("node", String.valueOf(Permission.PERMISSION_ADMIN_CAPS_OTHER))); return false; } + if (plot.getVolume() > Integer.MAX_VALUE) { + player.sendMessage(TranslatableCaption.of("schematics.schematic_too_large")); + return false; + } player.sendMessage(TranslatableCaption.of("info.plot_caps_header")); final int[] countedEntities = plot.countEntities(); sendFormatted(plot, player, MobCapFlag.class, countedEntities, "mobs", CAP_MOB); diff --git a/Core/src/main/resources/lang/messages_en.json b/Core/src/main/resources/lang/messages_en.json index 9f37ccc9e..46a0caed9 100644 --- a/Core/src/main/resources/lang/messages_en.json +++ b/Core/src/main/resources/lang/messages_en.json @@ -383,7 +383,7 @@ "info.plot_info_unclaimed": "Plot is not yet claimed.", "info.plot_info_header": "--------- INFO ---------", "info.plot_info_hidden": "You cannot view the information about this plot.", - "info.plot_info_format": "
\nID: \nArea: \nAlias: \nOwner: \nBiome: \nCan Build: \nRating: \nSeen: \nCreation: \nTrusted: \nMembers: \nDenied: \nFlags: \nDescription: \n