[Question] Argument names in-game
iamkoldun opened this issue · 4 comments
iamkoldun commented
RoinujNosde commented
manager.enableUnstableApi("brigadier");
iamkoldun commented
manager.enableUnstableApi("brigadier");
After several attempts, I could not achieve the desired effect. When you press the spacebar, an empty label appears, and when typing, the same text appears on top.
Here is my code:
Main class:
public void onEnable() {
...
BungeeCommandManager manager = new BungeeCommandManager(this);
manager.registerCommand(new MyCommand());
manager.enableUnstableAPI("brigadier");
}
MyCommand class:
@CommandAlias("somecommand")
@SuppressWarnings("unused")
public class MyCommand extends BaseCommand {
@Default
@Syntax("<sometext>")
public void execute(ProxiedPlayer player, String text) {
...
}
}
Maybe I should add something in the argument declaration..?
Joo200 commented
The brigadier implementation is currently only awailable for Paper.
It's not possible in BungeeCord.
iamkoldun commented
Got it, thanks for the help!