From 25a8f1522a6f43216a3966b942d0459557962e19 Mon Sep 17 00:00:00 2001 From: N0tMyFaultOG Date: Fri, 8 Jan 2021 16:08:42 +0100 Subject: [PATCH] Move creation date up in plot header --- Core/src/main/java/com/plotsquared/core/command/Caps.java | 4 ++++ Core/src/main/resources/lang/messages_en.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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