-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
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
Commands dont Work #129
Comments
While i can't tell you what's wrong with your code, all i can say is that this is certainly not a JDA-Utilities issue. You should ask for help on the JDA Discord in the jda-utilities channel. |
Well i did ask and they said its probably a Bug and i should do my own Command thing so :/ |
Hey there, I'm not sure if that's the actual problem but you're checking here "JDABuilder" it should be "JDA"
|
Nope, he is building the |
Oh yea right, i see. Then I'm not sure what's the problem. |
You should fix the formatting of your issue. Parts of the code blocks are messed up |
That wouldn't even compile. It is just a bad naming. |
Your command should work. The only issue is there there is a return block in
soo if the BCSystem returned an empty list your bot wouldn't respond at all. There it may not be that your bot is not working it might be due to the return statement that stops the command from proceeding. |
If the returned players is empty for some reason your list will also stay empty. |
Hello,
I tried to make Commands, but it didnt Work.
I didnt found any issue Report that has kind of the same Problem, this is not an JDA Issue its an JDA-Utilities Issue.
I hvae the latest Version of both, the Bot is running on a BungeeCord Plugin but that worked fine with just JDA.
So the Real Problem i guess is that the Command doesnt get registered because even on the help command it doesnt show the Command, i tried to Debug with a simple sout but it didnt Print.
Here are my 2 Classes:
Main Class:
public class ServerCommand extends Command {
public ServerCommand(){
this.name = "server";
this.aliases = new String[]{"s","ip"};
this.help = "Dieser Command gibt Informationen über den Server aus";
}
The text was updated successfully, but these errors were encountered: