1

Plugin Help: Invalid plugin.yml

Maxonomous 8/17/13 11:26 am
6.2k
8/18/2013 4:05 am
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
Posted by
Maxonomous
Level 23 : Expert Nerd
4

  Have something to say?

JoinSign in

21

Karrfis
08/17/2013 4:57 pm
They/Them • Level 35 : Artisan uwu uwu
press buttons and see what happens
1
Swimmer1929
08/17/2013 3:28 pm
Level 40 : Master Taco
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
Maxonomous
08/17/2013 3:33 pm
Level 23 : Expert Nerd
I still need a little help, I mean, you could assist. It'd be greatly appreciated!
1
Swimmer1929
08/17/2013 4:12 pm
Level 40 : Master Taco
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?
1
Maxonomous
08/18/2013 2:21 am
Level 23 : Expert Nerd
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
nickfromgreece
08/18/2013 4:05 am
Level 54 : Grandmaster Programmer
Bukkit is not the best way to learn java try making some simple programs on your own.
1
Doge
08/17/2013 3:24 pm
Level 1 : New Explorer
Facepalm Everywere >;o
1
Firework4lj
08/17/2013 3:22 pm
Level 46 : Master Gent
Read this. it will solve ALOT of problems:
http://wiki.bukkit.org/Plugin_Tutorial
1
nickfromgreece
08/17/2013 3:14 pm
Level 54 : Grandmaster Programmer
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
Maxonomous
08/17/2013 3:16 pm
Level 23 : Expert Nerd
Okay, I undestand, I'll fix it.
1
Maxonomous
08/17/2013 2:51 pm
Level 23 : Expert Nerd
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
1
Maxonomous
08/17/2013 2:46 pm
Level 23 : Expert Nerd
Oh! I'm sorry! I am SO stupid! The rest of the files I need are in Eclipse.
1
nickfromgreece
08/17/2013 2:48 pm
Level 54 : Grandmaster Programmer
1
Maxonomous
08/17/2013 2:42 pm
Level 23 : Expert Nerd
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
nickfromgreece
08/17/2013 2:39 pm
Level 54 : Grandmaster Programmer
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
Maxonomous
08/17/2013 2:37 pm
Level 23 : Expert Nerd
Okay, that's great, thanks, but, I don't understand the Main and Version. Could you politely explain what it is?
1
Maxonomous
08/17/2013 2:10 pm
Level 23 : Expert Nerd
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
1
nickfromgreece
08/17/2013 2:13 pm
Level 54 : Grandmaster Programmer
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
nickfromgreece
08/17/2013 12:35 pm
Level 54 : Grandmaster Programmer
Post your modified plugin.yml you derped something there
1
Maxonomous
08/17/2013 12:32 pm
Level 23 : Expert Nerd
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
1
nickfromgreece
08/17/2013 11:36 am
Level 54 : Grandmaster Programmer
Your plugins.yml spacing is screwed up
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
1

Welcome