/mm skills info and /mm m info are causing a java.lang.ArrayIndexOutOfBoundsException

Summary

I run /mm skills info or /mm m info and I'm getting a console error together with "An internal error occurred while attempting to perform this command". Also, /mm skills just shows the help page of /mm m - is that intended?

The error does not occur when I specify the 3. argument, like /mm m info AngrySludge

Steps to reproduce

Run /mm skills info or /mm m info. I'm using the default configuration and a recent 1.16.5 Airplane.gg server jar.

Intended correct behavior

I don't know, it definitely shouldn't throw an error message - maybe a message saying that I need to specify the 3. argument.

Debug log snippet

https://pastebin.com/dNZtFASp

Proposed fixes

A simple if(args.length == 2) catch condition will do it.

Edited May 24, 2021 by AlessioGr
Assignee Loading
Time tracking Loading