1

Plugin Help: Invalid plugin.yml

Maxonomous's Avatar Maxonomous8/17/13 11:26 am
1 emeralds 5.8k 21
8/18/2013 4:05 am
nickfromgreece's Avatar nickfromgreece
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's Avatar
Maxonomous
Level 23 : Expert Nerd
3

Create an account or sign in to comment.

21

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

Website

© 2010 - 2024
www.planetminecraft.com

Welcome