Cannot have commands with '/' characters.
HyperSkys opened this issue · comments
I was attempting to make a plugin similar to world edit but when trying to make a command like //set it wouldn't do anything but when I ran it said Invalid Command.
I see. Was this with Brigadier enabled?
Yeah it was with Brigadier enabled.
Does seem like it is an issue with Brigadier, just checked with it disabled and it worked just fine.
I assume this line is the cause. Might need to double-check to see if input
would even start with a /
in normal commands or not. PR anyone?
I assume this line is the cause. Might need to double-check to see if
input
would even start with a/
in normal commands or not. PR anyone?
Seems like it is, you must've added a safety check out of instinct just incase someone thought it worked like you had to put a slash before it for a command.
I assume this line is the cause. Might need to double-check to see if
input
would even start with a/
in normal commands or not. PR anyone?
Never mind that didn't do a thing the issue still happens.
I assume this line is the cause. Might need to double-check to see if
input
would even start with a/
in normal commands or not. PR anyone?
Found the issue in the eval method in class BaseCommandDispatcher.java it throws the exception because the base command category could not be found.