JorelAli / CommandAPI

A Bukkit/Spigot API for the command UI introduced in Minecraft 1.13

Home Page:https://commandapi.jorel.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Handling command failures documentation doesn't state the right method

JorelAli opened this issue · 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.)

By the way, I noticed it yesterday

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

Fixed in version 9.4.0.