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
Create an account or sign in to comment.
21
1
press buttons and see what happens
1
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 >.<
1
I still need a little help, I mean, you could assist. It'd be greatly appreciated!
1
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?
1
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.
1
Bukkit is not the best way to learn java try making some simple programs on your own.
1
Facepalm Everywere >;o
1
Read this. it will solve ALOT of problems:
http://wiki.bukkit.org/Plugin_Tutorial
http://wiki.bukkit.org/Plugin_Tutorial
1
You need to learn java before you start making plugins... I mean seriously read your errors...
org.bukkit.plugin.InvalidPluginException: java.lang.Error
Unresolved compilitation problems
Syntax error, insert ";" to complete Statement
Syntax error, instert "}" to complete MethodBody
1
Okay, I undestand, I'll fix it.
1
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
1
Oh! I'm sorry! I am SO stupid! The rest of the files I need are in Eclipse.
1
1
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?
1
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.
1
Okay, that's great, thanks, but, I don't understand the Main and Version. Could you politely explain what it is?
1
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
1
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 permission
1
Post your modified plugin.yml you derped something there
1
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
1
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: /sandvich
it must be:
commands:
sandvich:
description: <desk>
usage: /<command> <action>
permission: permission.here
permission-message: You don't have permission
here are some tips: space counts in yml files, do NOT EVER use tabs in YML files