1
Plugin Help: Invalid plugin.yml
So, today, I made my first plugin, but then, I get this error on console when I start my server:
17:32:12: [SEVERE] Could not load 'plugins\ExampleProject.jar' in folder 'plugins'
org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
I have a download to the files below, and if anyone could check it out or possibly fix it or tell me what's wrong it'd be greatly appreciated!
Link to plugin download:
http://www.mediafire.com/?16t1mt4ekvkan3u
17:32:12: [SEVERE] Could not load 'plugins\ExampleProject.jar' in folder 'plugins'
org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
I have a download to the files below, and if anyone could check it out or possibly fix it or tell me what's wrong it'd be greatly appreciated!
Link to plugin download:
http://www.mediafire.com/?16t1mt4ekvkan3u
21
press buttons and see what happens
Awww, I saw that it says plugin.yml and really wanted to help as this was the first Bukkit Plugin related thread I've seen on here in a while and someone else beat me to it >.<
I still need a little help, I mean, you could assist. It'd be greatly appreciated!
Wait... what?
Why would you make a plugin that displays errors when the server starts and stops? And, you have /sandvich in your plugin.yml but not in your actual code. Are you sure you know Java and are familiar with Bukkit API? It seems like you wrote a program but don't know what you just wrote... did someone else do this for you?
Why would you make a plugin that displays errors when the server starts and stops? And, you have /sandvich in your plugin.yml but not in your actual code. Are you sure you know Java and are familiar with Bukkit API? It seems like you wrote a program but don't know what you just wrote... did someone else do this for you?
Well, I mean, I am really new to Java, and I am no expert. I'm not very good at it and I'm still learning, and I still need help.
Bukkit is not the best way to learn java try making some simple programs on your own.
Facepalm Everywere >;o
Read this. it will solve ALOT of problems:
http://wiki.bukkit.org/Plugin_Tutorial
http://wiki.bukkit.org/Plugin_Tutorial
You need to learn java before you start making plugins... I mean seriously read your errors...

org.bukkit.plugin.InvalidPluginException: java.lang.ErrorUnresolved compilitation problemsSyntax error, insert ";" to complete StatementSyntax error, instert "}" to complete MethodBody
Okay, I undestand, I'll fix it.
Okay, I did everything right, and I got a new error:
20:47:34 [SEVERE] Could not load 'plugins\ExampleProject.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException: java.lang.Error: Unresolved compilitation problems:
Syntax error, insert ";" to complete Statement
Syntax error, instert "}" to complete MethodBody
Here's the plugin.yml:
name: ExampleProject
main: max.exampleproject.ExampleProject
version: 0.1
commands:
sandvich:
description: Says Ham or Cheese to the Minecraft Server
usage: /sandvich
permission: permission.here
permission-message: You don't have permission
20:47:34 [SEVERE] Could not load 'plugins\ExampleProject.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException: java.lang.Error: Unresolved compilitation problems:
Syntax error, insert ";" to complete Statement
Syntax error, instert "}" to complete MethodBody
Here's the plugin.yml:
name: ExampleProject
main: max.exampleproject.ExampleProject
version: 0.1
commands:
sandvich:
description: Says Ham or Cheese to the Minecraft Server
usage: /sandvich
permission: permission.here
permission-message: You don't have permission
Oh! I'm sorry! I am SO stupid! The rest of the files I need are in Eclipse.

Okay, thanks, and this might sound noobish, and I'm sorry to bother you, but how do I find the main class? Is it the .class file in the max folder in the ExampleProject.jar?
the main is the main class file the file which extends JavaPlugin and the version is just the plugins version number, not sure if its used for anything too important.
Okay, that's great, thanks, but, I don't understand the Main and Version. Could you politely explain what it is?
Here it is:
commands:
sandvich:
description: Says Ham or Cheese to the Minecraft Server
usage: /sandvich
permission: permission.here
permission-message: You don't have permission
commands:
sandvich:
description: Says Ham or Cheese to the Minecraft Server
usage: /sandvich
permission: permission.here
permission-message: You don't have permission
no wonder why you crash... you NEED the first part... here is a complete plugin.yml from one of my plugins:
name: AutoResponder
main: nickfromgreek.autoResponder.AutoResponder
version: 1.0
commands:
autoresponder:
description: Main control command.
usage: /<command> <action>
permission: autoresponder.control
permission-message: You don't have permissionPost your modified plugin.yml you derped something there
Thank you SOO much! It fixed the error! But now I get a new one. Can you fix it as well?
Here's the error:
18:27:37 [SEVERE] Could not load 'plugins\ExampleProject.jar' in folder 'plugins'
org.bukkit.plugin.InvalidDescriptionException: name is not defined
Here's the error:
18:27:37 [SEVERE] Could not load 'plugins\ExampleProject.jar' in folder 'plugins'
org.bukkit.plugin.InvalidDescriptionException: name is not defined
Your plugins.yml spacing is screwed up
you have it:
it must be:
here are some tips: space counts in yml files, do NOT EVER use tabs in YML files
you have it:
commands:
sandvich
description: Says Ham or Cheese to the Minecraft Server
usage: /sandvichit must be:
commands:
sandvich:
description: <desk>
usage: /<command> <action>
permission: permission.here
permission-message: You don't have permissionhere are some tips: space counts in yml files, do NOT EVER use tabs in YML files
