We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I copied the code on the documentation to create a simple command:
package org.example.template; import io.fairyproject.command.BaseCommand; import io.fairyproject.command.CommandContext; import io.fairyproject.command.MessageType; import io.fairyproject.command.annotation.Arg; import io.fairyproject.command.annotation.Command; import io.fairyproject.command.argument.ArgProperty; import io.fairyproject.container.InjectableComponent; @InjectableComponent @Command(value = "testfairy", permissionNode = "fairy.test") public class TestCommand extends BaseCommand { @Arg("name") private ArgProperty<String> name; @Command("#") public void onNoSubCommand(CommandContext sctx) { sctx.sendMessage(MessageType.INFO, String.format("Halo %s!", sctx.getProperty(name))); } }
but I got this error: 2024-11-21.log
Paper version is 1.8.8
The text was updated successfully, but these errors were encountered:
I tried to set @CommandPresence(DefaultPresenceProvider.class) but I end up having a NPE. 2024-11-21-6.log
Sorry, something went wrong.
ok so putting Args as a field doesn't work but using the annotation "Arg" works on the method parameters.
any updates ?
No branches or pull requests
I copied the code on the documentation to create a simple command:
but I got this error:
2024-11-21.log
Paper version is 1.8.8
The text was updated successfully, but these errors were encountered: