Where to learn to create plugins for spigot?

Worth learning? Im quite interested.

Any books to recommend?

Posted Mar 27, 2015, 4:57 PM UTC

1024
c0wg0dSandlot Minecraft•

I recently started coding my first plugin by watching Pogostick29 tutorials on YouTube and reading the Bukkit API docs.

8
looloosha•

Pogo is amazing. He actually explains everything instead of repeating the code as they type it.

3
psybornut•

For Java in general, r/learnjava has a good list of links. After that, you should be able to utilize some of the documentation for bukkit / spigot to hook into various apis.

4
ObsologicOP•

Cool, code would look similar to configs of plugins or loads more technical?

1
Black_Monkey•

Lol

10
DykamOSS Plugin Dev•

It honestly made me laugh a little too.

u/Obsologic, don't let it discourage you, but it's nothing like configs. It isn't just more technical, it's just different on a whole different level. Much more creative, for one thing. But also awesome. Take your time, start small, and you'll get there.

9
ObsologicOP•

I can handle it :)

1
psybornut•

loads more technical.

You'd have to code your config parsing, as well as what does what. It's not anywhere near as simple as just installing a ready-made plugin. I'm not a plugin developer myself, but I know this much, and greatly respect the time other people put into their plugins.

7
-Switorik-•

A tutorial I found really informative that aims specifically at coding plugins for bukkit (and spigot since it runs off of bukkit) is here.

That answered all of my questions and then some when I wanted to learn how to start making plugins. It also has a link to making sponge plugins which might also be worth learning.

1
vemacsThe Chunk/VikkCraft/ChaosPVP•

Not taking offense to your comment, but that tutorial completely ignores most plugin packaging conventions. It doesn't use a build system like Maven or Gradle, instead relying on manual dependency management (which makes it a pain for other developers to work on your project, plus, 99.999% of major Bukkit/Spigot plugins use a build system), doesn't encourage good practices like using the @Override annotation and switch statements, somehow calls arrays "lists" and actually encourages the use of them, and following its advice directly will only result in tears on more complex projects.

3
SupaHam•

I agree everyone should use a building system like maven, but if you're teaching someone java wouldn't you want to teach them it without maven and get them to know how to configure your workspace and compile manually?

2
vemacsThe Chunk/VikkCraft/ChaosPVP•

Probably not for Bukkit plugins, as that's bad practice to compile manually, and the flip side of the coin is that you would want to teach people about dependency concepts when they start out...

However with vanilla Java and standalone classes, that's definitely acceptable in my opinion, as you're teaching the language, not how to package for a particular API.

1
Guyagdev•

For a beginner to java, I'd imagine that introducing a build/dependency management system just confuses things unnecessarily.

1
vemacsThe Chunk/VikkCraft/ChaosPVP•

That's why you should learn Java before learning how to package Bukkit plugins :P

2
Guyagdev•

Well yeah, let's be realistic though haha

1
ajtag5Overcast Network Development•

If you know Java already, take a look at the API that many other comments have linked. However, if you don't know Java, I highly suggest learning Java syntax / thinking logically (if you have never coded before) first.

1
cragnore•

I went on YouTube and figured out the basics, from there it's just knowing the terminology so you can effectively Google search.

But I'm also a web dev so I'm already familiar with several languages, compiling was new to me but Eclipse turns it into child's play. Check out the Spigot JavaDocs to get familiar with the API and it's pretty basic from there.

1
vemacsThe Chunk/VikkCraft/ChaosPVP•

http://wiki.bukkit.org/Plugin_Tutorial is possibly the resource that most closely follows standard conventions (uses Maven, encourages following Oracle style guidelines, etc...)

1
BroughtFromHome2op5u•

Don't know about books, but TheNewBoston is a great YouTuber that teaches Java. Pogostickdev29 is great too.

1
InsanityDefinitionmc.thedim3nsions.com | Admin•

Edit: Nevermind, I'm a moron.

0
I_IblackI_I•

Doesn't do java last I checked

1