mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-11-07 03:02:11 +01:00
Fix ArrayIndexOutOfRange in DelayableCommand.
This commit is contained in:
parent
5baaedce74
commit
59063c7497
@ -115,7 +115,7 @@ public abstract class DelayableCommand extends NCPCommand {
|
||||
// Parse the delay and alter the args accordingly.
|
||||
long delay = parseDelay(args, delayIndex, delayPreset);
|
||||
String[] alteredArgs;
|
||||
if (delay == -1){
|
||||
if (args.length <= delayIndex){
|
||||
// No delay found, if demanded return.
|
||||
if (mustHaveDelay) return false;
|
||||
alteredArgs = args;
|
||||
|
Loading…
Reference in New Issue
Block a user