From 2c6ebc82f3d8177191bcd7444dfe9607c35c952b Mon Sep 17 00:00:00 2001 From: yoyosource Date: Mon, 22 Aug 2022 18:30:23 +0200 Subject: [PATCH] Fix internal error --- src/de/steamwar/command/CommandPart.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/de/steamwar/command/CommandPart.java b/src/de/steamwar/command/CommandPart.java index 14b4079..09b8303 100644 --- a/src/de/steamwar/command/CommandPart.java +++ b/src/de/steamwar/command/CommandPart.java @@ -119,6 +119,8 @@ class CommandPart { current.add(typeMapper.map(sender, EMPTY_ARRAY, optional)); } else if(startIndex >= args.length) { current.add(typeMapper.map(sender, EMPTY_ARRAY, optional)); + } else { + throw new CommandParseException(); } } if (next != null) {