mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-25 09:59:49 -05:00
Fix ArrayIndexOutOfBoundsException when having boot error
This commit is contained in:
1 parent
5971de610c
commit
f5fc2ef1d0
1 file changed
+1
-1
@@ -365,7 +365,7 @@ public class CommandManager implements TabCompleter, CommandExecutor {
|
||||
@NotNull String commandLabel,
|
||||
@NotNull String[] cmdArg) {
|
||||
if (plugin.getBootError() != null) {
|
||||
if (cmdArg.length != 1 && !"paste".equalsIgnoreCase(cmdArg[0])) {
|
||||
if (cmdArg.length >= 1 && !"paste".equalsIgnoreCase(cmdArg[0])) {
|
||||
plugin.getBootError().printErrors(sender);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user