From ec6a83405adcf88d6562744a571fe7256c20ab84 Mon Sep 17 00:00:00 2001 From: aroooo Date: Fri, 4 Nov 2022 17:11:06 +0100 Subject: [PATCH] fix(debug sub-cmd): fix arrayindexoutofboundsexception --- .../java/net/artelnatif/nicko/command/sub/NickoDebugSubCmd.java | 1 + 1 file changed, 1 insertion(+) diff --git a/nicko-core/src/main/java/net/artelnatif/nicko/command/sub/NickoDebugSubCmd.java b/nicko-core/src/main/java/net/artelnatif/nicko/command/sub/NickoDebugSubCmd.java index 4160f8e..79ac636 100644 --- a/nicko-core/src/main/java/net/artelnatif/nicko/command/sub/NickoDebugSubCmd.java +++ b/nicko-core/src/main/java/net/artelnatif/nicko/command/sub/NickoDebugSubCmd.java @@ -30,6 +30,7 @@ public class NickoDebugSubCmd extends NickoSubCmd { if(args.length < 3) { sender.sendMessage(NickoBukkit.getInstance().getNickoConfig().getPrefix() + "§cMissing argument."); + return; } name = args[2];