"Expected One argument..."

Hey, I was wondering if I could get some assistance with this. I am coding my first Minecraft plugin, and I was getting this error (shown in screenshot attached) and I was wondering if I could get some assistance for it. Thanks!
10 Replies
JavaBot
JavaBot5mo ago
This post has been reserved for your question.
Hey @shazim! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
Shazim
ShazimOP5mo ago
No description
Shazim
ShazimOP5mo ago
I am new so sorry for my rookie mistakes/questions
Madjosz
Madjosz5mo ago
It means that the JoinLeaveListener constructor needs one argument but you passed zero.
JavaBot
JavaBot5mo ago
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.
Shazim
ShazimOP5mo ago
Explain in idiot terms lol, im too stupid
JavaBot
JavaBot5mo ago
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.
Madjosz
Madjosz5mo ago
There is no
new JoinLeaveListener()
new JoinLeaveListener()
It must be some
new JoinLeaveListener(something)
new JoinLeaveListener(something)
I cannot find your specific class though. You need to look into the docs of the library you are using.
dan1st
dan1st5mo ago
Including the code of JoinLeaveListener so we can see what should be passed might help
JavaBot
JavaBot5mo ago
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.

Did you find this page helpful?