1
Please help me I'm ready to give up please look
Hello guys, I've spent about 10 hours today trying to learn how to code minecraft plugins. And Ive mostly got it, I successfully wrote about 30 lines of code without errors, but its the plugin.yml, the files, and the jar itself that I need help with. let me explain. I made a test plugin, which where you did /hello it would respond to you. I set up the project, the package, and the class, swell as the plugin.yml, but I don't know what the correct main: thing is. Its supposed to be something like me.benhallihan.hello.hello or me.benhallihan.hello.main but I can't figure it out for the life of me. I've tried everything, it always says something along the lines of: InvalidPluginException: Cannot find main class `me.benhallihan.hello.hello.'
here are all of the screenshots that may help you to have the info you need to help me, Im usually pretty smart and I think I could be a valuable developer on my minecraft network but Ive been stuck for hours on this and Id rather come to a community of experienced mine crafters than spend 5 more hours trying to figure this out.
NOTE: I've tried me,benhallihan.hello.hello, me.benhallihan.hello.java, me.benhallihan.hello.hello.hello, me.benhallihan,main, me.benhallihan.hello.main, you name it. Please tell me what to do.
Screenshots: http://imgur.com/O7Xq6bb,vtZKhXG,vF5eyZG#2 <<<<<<<--------
here are all of the screenshots that may help you to have the info you need to help me, Im usually pretty smart and I think I could be a valuable developer on my minecraft network but Ive been stuck for hours on this and Id rather come to a community of experienced mine crafters than spend 5 more hours trying to figure this out.
NOTE: I've tried me,benhallihan.hello.hello, me.benhallihan.hello.java, me.benhallihan.hello.hello.hello, me.benhallihan,main, me.benhallihan.hello.main, you name it. Please tell me what to do.
Screenshots: http://imgur.com/O7Xq6bb,vtZKhXG,vF5eyZG#2 <<<<<<<--------
Create an account or sign in to comment.
17
1
Moved to General Help.
1
Coding. Coding is a complex set of commands that tells the computer what to do, and by learning these commands in and out, your possibilities are endless. Learning minecraft code is probably 10x easier than real code. Even if this is true, you can't just learn it overnight. I would suggest watching some tutorials, getting plenty of rest, and not to stress out so much.
1
Wow! Learning Java in 10 hrs? Impressive
I got Java down, and I would try to help, but I do forge, never got into bukkit
They should be similar
It looks like it can't find package, but it can... hmm
I got Java down, and I would try to help, but I do forge, never got into bukkit
They should be similar
It looks like it can't find package, but it can... hmm
1
I knew C# then I started java and learned how similar it was.
I pretty much got a tiny bit bukkit API (such as commands and events) down in 30 minutes
I pretty much got a tiny bit bukkit API (such as commands and events) down in 30 minutes
1
Send us your plugin.yml?
1
Well, you've likely called a class from somewhere which is in the wrong package, if you're in eclipse you can go to package explorer (the window on the left), and see the names of your packages. I did a tutorial series on coding mods a while back, so some of the info is a little outdated, but you'll be able to learn some pretty solid java. If you want, just post the code up here and I'll see what's wrong with it. Anyway, here's the first video I did:
https://www.youtube.com/watch?v=fw_4Psyg90U
(I'm EsvDefcon btw, but the mods don't like me so they banned me from PMC a couple of months ago )
Oh, and from the images you posted, it's a little hard to see exactly what's wrong, but your package is called me.benhallihan.hello.
https://www.youtube.com/watch?v=fw_4Psyg90U
(I'm EsvDefcon btw, but the mods don't like me so they banned me from PMC a couple of months ago )
Oh, and from the images you posted, it's a little hard to see exactly what's wrong, but your package is called me.benhallihan.hello.
1
also, it may help, the actual code seems to be contained in me.benhallihan.hello.hello.java, I tried putting that and it still didn't work, and as shown in the screenshot all of the green C files are like dropdown from that file, however thats what it always does when I create a class. anybody know if this is normal? is that something that needs to be fixed or is that supposed to happen? if its set up incorrectly how do I fix it?
1
Like I said tho, Im having having no trouble with the coding part, for some reason having me.benhallihan.hello.hello won't work. THATS what I need an answer to.
1
This is how it should be.
main: me.benhallihan.hello.hello
http://wiki.bukkit.org/Plugin_YAML
If this doesn't work, then maybe you are formatting the plugin.yml incorrectly?
I'm not an experienced plugin developer
main: me.benhallihan.hello.hello
http://wiki.bukkit.org/Plugin_YAML
If this doesn't work, then maybe you are formatting the plugin.yml incorrectly?
I'm not an experienced plugin developer
1
The topic of this title makes it sound like you're about to commit suicide. Just saying.
In terms of coding, I know nothing.
What have I contributed to this discussion? Nothing.
Should you change the title to be a little more accurate and less concerning? Yes.
In terms of coding, I know nothing.
What have I contributed to this discussion? Nothing.
Should you change the title to be a little more accurate and less concerning? Yes.
1
[deleted]
1
Coding is like a whole new language, it is simply something people don't learn overnight. Although this advice is really cliche, practice makes perfect. People devote themselves to coding, and people who have spent years on it still learn things.
Think of a coding language this way: Its a problem, (whatever you want to achieve) and you need to use the materials and the stuff you have gathered and learned to solve it. Like in the real world, many things have many different solutions, some big, some small, some extensive, some really short.
Coding is literally another language you are learning and trying to understand. Keep an open mind, and devote yourself to it.
Think of a coding language this way: Its a problem, (whatever you want to achieve) and you need to use the materials and the stuff you have gathered and learned to solve it. Like in the real world, many things have many different solutions, some big, some small, some extensive, some really short.
Coding is literally another language you are learning and trying to understand. Keep an open mind, and devote yourself to it.
1
Why don't you just, like, use google translate or something? Just do a English > Java, that's how it works right???
I'm a GENIUS!!!
I'm a GENIUS!!!
Click to reveal
Just so everyone understands, I am joking. There is always someone who takes me seriously :/
1
This, it takes a while to actually learn Java, trust me, I am learning right now. Its not easy, its like learning another language, just like the person I am quoting said. Its not easy, and depending on the person, it may be hard. You just need to set some time each day, or week and sit down, grab a cup of coffee, or whatever, and sit there and learn. It takes time. Dont try to do it in one day, one week, let it take time, if you take your time, you will be able to do some quality work, not something that is terrible and put together in like a couple of hours.
1
yes. I spent about 8 hours trying to conquer the great challenge that is eclipse. Anybody have an answer? I feel so uneducated and nobody D:
1
My greatest tip for coding is to go outside and buy a cup of tea because you are going to be there a LONG time.
I have no experience with coding (but I hear it is hard :O )
I have no experience with coding (but I hear it is hard :O )
1
bump