diff --git a/SchematicSystem_Main/src/de/steamwar/schematicsystem/commands/SchematicCommand.java b/SchematicSystem_Main/src/de/steamwar/schematicsystem/commands/SchematicCommand.java index be525db..af2ed7c 100644 --- a/SchematicSystem_Main/src/de/steamwar/schematicsystem/commands/SchematicCommand.java +++ b/SchematicSystem_Main/src/de/steamwar/schematicsystem/commands/SchematicCommand.java @@ -164,6 +164,11 @@ public class SchematicCommand implements CommandExecutor { if(invalidSchemName(player, args[1])) return; + if(args[1].length() > 64){ + player.sendMessage(SchematicSystem.PREFIX + "§cDer Name der Schematic ist zu lang"); + return; + } + Schematic schematic = Schematic.getSchemFromDB(args[1], player.getUniqueId()); if(schematic != null && !schematic.getSchemType().writeable()) { player.sendMessage(SchematicSystem.PREFIX + "§cDu darfst diese Schematic nicht überschreiben");