From 9e0f9c42dfcd67b6ba3207e48247249c346599bf Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Sun, 2 Jan 2022 21:12:20 +0100 Subject: [PATCH] Hotfix Name Length Check Signed-off-by: Chaoscaot --- .../schematicsystem/commands/SchematicCommandUtils.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SchematicSystem_Core/src/de/steamwar/schematicsystem/commands/SchematicCommandUtils.java b/SchematicSystem_Core/src/de/steamwar/schematicsystem/commands/SchematicCommandUtils.java index 8b4e551..cacbd02 100644 --- a/SchematicSystem_Core/src/de/steamwar/schematicsystem/commands/SchematicCommandUtils.java +++ b/SchematicSystem_Core/src/de/steamwar/schematicsystem/commands/SchematicCommandUtils.java @@ -53,6 +53,10 @@ public class SchematicCommandUtils { player.sendMessage(SchematicSystem.PREFIX + "§cDeine Ordner brauchen schon einen Namen!"); return true; } + if(layer.length() > 64) { + player.sendMessage(SchematicSystem.PREFIX + "§cDer Name der Schematic ist zu lang"); + return true; + } if (layer.contains("/") || layer.contains("\\") || layer.contains("<") ||