Plugin issue (New developer) (Java) (Mac)

Status
This thread has been locked.

Bymango

Banned
Feedback score
10
Posts
406
Reactions
101
Resources
0
I have been trying to read my own error but cant figure out what is wrong I have no light bulbs in my code and it looks fine.


My error is:

Could not load 'plugins/testplugin1.jar' in folder 'plugins'

org.bukkit.plugin.InvalidDescriptionException: commands are of wrong type

what does this mean?
 
Banned forever. Reason: Scamming (https://builtbybit.com/threads/bymango-scam-report.391656/)
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Bymango

Banned
Feedback score
10
Posts
406
Reactions
101
Resources
0
Last edited:
Banned forever. Reason: Scamming (https://builtbybit.com/threads/bymango-scam-report.391656/)

Animal

Feedback score
6
Posts
159
Reactions
63
Resources
0
Ok, two things to be fixed. When creating a command it is needed for @Override to be put over the method. Second, to make a command, you have to register when the plugin loads. Register the command by doing getCommand("yourcommand").setExecutor(this);
 

Canadian

Developer
Supreme
Feedback score
11
Posts
95
Reactions
60
Resources
0
Ok, two things to be fixed. When creating a command it is needed for @Override to be put over the method. Second, to make a command, you have to register when the plugin loads. Register the command by doing getCommand("yourcommand").setExecutor(this);
That's not the issue. You don't need to do that if your onCommand boolean is in your main class.

InvalidDescriptionException is an exception caused by an incorrect plugin.yml.
 

Animal

Feedback score
6
Posts
159
Reactions
63
Resources
0
That's not the issue. You don't need to do that if your onCommand boolean is in your main class.

InvalidDescriptionException is an exception caused by an incorrect plugin.yml.

If you read the error, it mentions commands. He is executing a command that is in his plugin.yml but not registered in the plugin
 

Bymango

Banned
Feedback score
10
Posts
406
Reactions
101
Resources
0
Ok, two things to be fixed. When creating a command it is needed for @Override to be put over the method. Second, to make a command, you have to register when the plugin loads. Register the command by doing getCommand("yourcommand").setExecutor(this);
So I am very new and dont really understand a method completely so can you tell me exactly where to put it.

Also Can you tell me if I put the line of code you told me in the right place https://hastebin.com/ejaqaqucev.java[DOUBLEPOST=1510620920][/DOUBLEPOST]
Could we see your code? Post it in a https://hastebin.com
https://hastebin.com/ivocosozaq.css
 
Banned forever. Reason: Scamming (https://builtbybit.com/threads/bymango-scam-report.391656/)

Canadian

Developer
Supreme
Feedback score
11
Posts
95
Reactions
60
Resources
0
Your issue is you forgot a colon on 'description' in your plugin.yml under your heal command.
Current: "description good health plugin"
Proper: "description: good health plugin"

You also spelled aliases wrong under the same command.
 
Last edited:

Bymango

Banned
Feedback score
10
Posts
406
Reactions
101
Resources
0
Your issue is you forgot a colon on 'description' in your plugin.yml under your heal command.
Current: "description good health plugin"
Proper: "description: good health plugin"

You also spelled aliases wrong under the same command.
I have a semi colon after description and i fixed the ailises thanks so much
 
Banned forever. Reason: Scamming (https://builtbybit.com/threads/bymango-scam-report.391656/)

Bymango

Banned
Feedback score
10
Posts
406
Reactions
101
Resources
0
Last edited:
Banned forever. Reason: Scamming (https://builtbybit.com/threads/bymango-scam-report.391656/)

Canadian

Developer
Supreme
Feedback score
11
Posts
95
Reactions
60
Resources
0
ok so i did the edits you told me to make and now under the setExecutor it has a red dotted line and no suggestions on how to fix it
Trust me on this one. You don't need to do that. Just make the changes in the plugin.yml and that'll fix the issue.
 

Mints

Feedback score
0
Posts
27
Reactions
14
Resources
0
Code:
import net.md_5.bungee.api.ChatColor;

This is the wrong chat color. This is for bungeecord.
 

Bymango

Banned
Feedback score
10
Posts
406
Reactions
101
Resources
0
Banned forever. Reason: Scamming (https://builtbybit.com/threads/bymango-scam-report.391656/)

Bymango

Banned
Feedback score
10
Posts
406
Reactions
101
Resources
0
Last edited:
Banned forever. Reason: Scamming (https://builtbybit.com/threads/bymango-scam-report.391656/)
Status
This thread has been locked.
Top