CommandAPI icon indicating copy to clipboard operation
CommandAPI copied to clipboard

Handling command failures documentation doesn't state the right method

Open JorelAli opened this issue 2 years ago • 2 comments

Documentation URL

https://commandapi.jorel.dev/9.3.0/commandfailures.html

What the documentation currently says

throw CommandAPI.failWithString(String message);
throw CommandAPI.failWithMessage(Message message);
throw CommandAPI.failWithBaseComponents(BaseComponent... message);
throw CommandAPI.failWithAdventureComponent(Component message);

Proposed fix

It should state CommandAPIBukkit.failWithAdventureComponent (etc.)

JorelAli avatar Jan 02 '24 21:01 JorelAli

By the way, I noticed it yesterday

Xemii16 avatar Jan 03 '24 18:01 Xemii16

By the way, I noticed it yesterday

@Xemii16 Yes, thanks very much! I raised this because you mentioned this in the CommandAPI Discord server yesterday so we could keep track of this

JorelAli avatar Jan 03 '24 19:01 JorelAli

Fixed in version 9.4.0.

JorelAli avatar Apr 30 '24 20:04 JorelAli