Discussion in 'Plugin Development' started by Nick Foster, May 28, 2012.
html5= html it depends on how you use it
You guys are still using Java?
Do we have a problem?
That's no fun...
Nothing like a good srs bsns, with a light side of trolling, am I rite? =)
Lol. Feed me knowledge about java or gtfo.
I would suggest starting in general as your starting point. I am also learning java and I made my first plugin within 24 hours. I posted my code on here when I had issues. I referenced http://jd.bukkit.org/doxygen/ many times. I used simple math. Still learning but I have a full functioning plugin with no errors.
The help thread for me is right here.
Within 24 hours :O I learned java by watching thenewboston tuts one day and the next day I wrote my first bukkit plugin within 10 minutes
If this would help; In Java you'll need to be able to use a decent amount of logic when coding. You'll logically start with something fairly easy, like printing/sending a string (sentence) to a player.
Like if I would send a message to the player each time he logs into the server, I would use the PlayerJoinEvent. PlayerJoinEvent is a method called everytime a player joins. Inside the PlayerJoinEvent method I would type soemthing similar to 'event.getPlayer().sendMessage("Hello, this string was automatically sent to you because you logged in!")' That will send the message "Hello, this string was automatically sent to you because you logged in!" to the player.
That's called a helloworld plugin. Helloworld plugins is just to say "hello" to the Java world/language.
However, there's a little more to do before going into bukkit event methods, for an example the onEnable() and onDisable() methods, and registering events etc..
Everything you need for a simple plugin can be found 'here'.
In Java you'll need patience and spirit, the spirit to continue learning, even from mistakes.
Please correct me if I've typed anything misleading or wrong, and sorry if the post is a bit disordered.
this seems so over complicated, i think i may give up
Never give up if you really want something done, but it's your choice.
EDIT: Btw, Java is pretty easy when you first learn the basics.
Well I just already spent so much time keeping my server afloat it may be hard to do both... I really don’t have the time to put forth to learn another language... I may wait till winter....
It's not THAT hard, you know. You just need some time to take a look at some plugins and you'll learn it passively.
I said "within" 24 hours. Didn't literally take 24 hours. I had other stuff going on throughout the day.
Separate names with a comma.