1

Want to get into plugin dev. What do I need to know?

NightDivine's Avatar NightDivine10/12/16 6:01 am
10/14/2016 4:26 am
NightDivine's Avatar NightDivine
Title captures the essence of my post/question.
I've heard that bukkit (along with its API) got taken down; so I'm not sure what I'm supposed to do from there.
I only have basic knowledge of programming and have not used any ext libraries yet (Swing, openGL etc) and I've only ever made boring text based games with tons of variables and if statements.
Developing plugins would seem like a cool thing to kickstart my programming adventure. So what do I do now?
Posted by NightDivine's Avatar
NightDivine
Level 40 : Master Blockhead
15

Create an account or sign in to comment.

12

1
10/14/2016 12:23 am
Level 22 : Expert Blockhead
raidarr
raidarr's Avatar
Open up plugins and modify/add to them, work off existing foundations to hone your skills, say "I want to add x command and y set of perms" and then just do it to, say, essentials. Then you can head a little further in, look at the API for Spigot (that's the main one, though bukkit, if you can get your hands on it, is interesting too). See if you can't update small plugins that have been discontinued on your own.

When you've got the confidence that you know how plugins work, feel free to start making them from small up to larger things.

In short, I suggest starting simply, even if it looks too simple, and working your way up to big things.
1
10/13/2016 7:30 am
Level 62 : High Grandmaster Programmer
NJDaeger
NJDaeger's Avatar
If you are just trying to heal a specified player, you don't need to do it via uuid. You can just create a target with their player name, because you wont be getting an offline player. So all you need to do is this "Player target = Bukkit.getPlayer(String name);"
1
10/13/2016 10:07 pm
Level 40 : Master Blockhead
NightDivine
NightDivine's Avatar
I'm assuming that its Player target = Bukkit.getPlayer(args[0]); right?
1
10/13/2016 10:39 pm
Level 62 : High Grandmaster Programmer
NJDaeger
NJDaeger's Avatar
Yep. If you need any more help I would actually suggest looking on GitHub at bukkit plugins and see how they program them, I'm actually working on a remake of essentials, you can take a look at that if you want too

PS Make sure that you setup another if statement below the "if (args.length == 0) {" line and check if the command has another argument. If you don't do that it will throw an array out of bounds exception or an NPE. (don't quote me on that lol) then after you check if the command has 1 argument do an else statement below it and have a too many arguments error!
1
10/14/2016 4:26 am
Level 40 : Master Blockhead
NightDivine
NightDivine's Avatar
Oh yeah, I didnt realize that could've happened. thanks alot.
1
10/13/2016 4:03 am
Level 40 : Master Blockhead
NightDivine
NightDivine's Avatar
MrrMidnight
It will since the two are almost the same.
Spigot is built and developed from the basics of Bukkit and can be seen as just a simple extension.
Although with the newer minecraft versions the difference keeps getting bigger, but it's still possible to run Spigot plugins on Bukkit servers, and the other way around.



Right thanks, then I've gone ahead to do my stuff with a craftbukkit server. I got a new problem now :
Obtaining a player's username is harder now, thanks to the 1.8 name change update. Apparently I must obtain their UUIDs to make my command work on players who have changed their names. How exactly do I do that?
1
10/12/2016 11:36 am
Level 15 : Journeyman Network
Flappo
Flappo's Avatar
0728John
McHorse
0728JohnTitle captures the essence of my post/question.
I've heard that bukkit (along with its API) got taken down; so I'm not sure what I'm supposed to do from there.
I only have basic knowledge of programming and have not used any ext libraries yet (Swing, openGL etc) and I've only ever made boring text based games with tons of variables and if statements.
Developing plugins would seem like a cool thing to kickstart my programming adventure. So what do I do now?


Disclaimer: this post will contain obvious stuff.

First, you need to decide what do you want to do with those skills you want to acquire. If you want to develop plugins for other servers, you need to gain experience first (duh).

If you have some plugin that you want to implement, then what you do is trying to implement it. First, you need to choose a platform on which you're going to develop your plugins, there are, as SwampyAgent mentioned, spigot and sponge, which I know (there might more). You can also develop your plugins on forge server, but I think it is less common (and less productive).

So choose API, read docs and start coding

---

Another helpful tip is to look up source code of other mods plugins. It's really helpful when you're trying to implement a feature, but don't know how, but plugin Xyz has similar functionality, from which you can get inspiration how to implement your feature. Plugin may be open source (so you can look up the code on GitHub or download it), or closed source. For closed source plugins you can use Java decompiler.

I hope it helped

Excuse me for my ignorance, but what do I really want to code in? As in for API. Bukkit seems to have shut down but plenty of servers still run craftbukkit, so if I were to develop a plugin with spigot then it wouldn't be accessible to my craftbukkit server of choice right?

It will since the two are almost the same.
Spigot is built and developed from the basics of Bukkit and can be seen as just a simple extension.
Although with the newer minecraft versions the difference keeps getting bigger, but it's still possible to run Spigot plugins on Bukkit servers, and the other way around.
1
10/12/2016 11:29 am
Level 40 : Master Blockhead
NightDivine
NightDivine's Avatar
McHorse
0728JohnTitle captures the essence of my post/question.
I've heard that bukkit (along with its API) got taken down; so I'm not sure what I'm supposed to do from there.
I only have basic knowledge of programming and have not used any ext libraries yet (Swing, openGL etc) and I've only ever made boring text based games with tons of variables and if statements.
Developing plugins would seem like a cool thing to kickstart my programming adventure. So what do I do now?


Disclaimer: this post will contain obvious stuff.

First, you need to decide what do you want to do with those skills you want to acquire. If you want to develop plugins for other servers, you need to gain experience first (duh).

If you have some plugin that you want to implement, then what you do is trying to implement it. First, you need to choose a platform on which you're going to develop your plugins, there are, as SwampyAgent mentioned, spigot and sponge, which I know (there might more). You can also develop your plugins on forge server, but I think it is less common (and less productive).

So choose API, read docs and start coding

---

Another helpful tip is to look up source code of other mods plugins. It's really helpful when you're trying to implement a feature, but don't know how, but plugin Xyz has similar functionality, from which you can get inspiration how to implement your feature. Plugin may be open source (so you can look up the code on GitHub or download it), or closed source. For closed source plugins you can use Java decompiler.

I hope it helped

Excuse me for my ignorance, but what do I really want to code in? As in for API. Bukkit seems to have shut down but plenty of servers still run craftbukkit, so if I were to develop a plugin with spigot then it wouldn't be accessible to my craftbukkit server of choice right?
1
10/12/2016 8:48 am
Level 71 : Legendary Unicorn
McHorse
McHorse's Avatar
0728JohnTitle captures the essence of my post/question.
I've heard that bukkit (along with its API) got taken down; so I'm not sure what I'm supposed to do from there.
I only have basic knowledge of programming and have not used any ext libraries yet (Swing, openGL etc) and I've only ever made boring text based games with tons of variables and if statements.
Developing plugins would seem like a cool thing to kickstart my programming adventure. So what do I do now?


Disclaimer: this post will contain obvious stuff.

First, you need to decide what do you want to do with those skills you want to acquire. If you want to develop plugins for other servers, you need to gain experience first (duh).

If you have some plugin that you want to implement, then what you do is trying to implement it. First, you need to choose a platform on which you're going to develop your plugins, there are, as SwampyAgent mentioned, spigot and sponge, which I know (there might more). You can also develop your plugins on forge server, but I think it is less common (and less productive).

So choose API, read docs and start coding

---

Another helpful tip is to look up source code of other mods plugins. It's really helpful when you're trying to implement a feature, but don't know how, but plugin Xyz has similar functionality, from which you can get inspiration how to implement your feature. Plugin may be open source (so you can look up the code on GitHub or download it), or closed source. For closed source plugins you can use Java decompiler.

I hope it helped
1
10/12/2016 6:08 am
Level 1 : New Network
AgentSwampy
AgentSwampy's Avatar
Hey,

I don't know a lot about plugin development either, it's something I'm also hoping to learn. Considering the Bukkit API is out the windows, you should take a look at the Spigot API, you can get an overview of this here:

https://hub.spigotmc.org/javadocs/spigot/

Secondly, if you have extremely little knowledge in the field, I recommend you taking a full Java course first. Programming plugins will come a lot easier to you if you have knowledge of Java as a language initially. I think this would be a better idea than going in with the sole intentions of learning how to make just plugins.

Hope some of this helped.
1
10/12/2016 6:38 am
Level 40 : Master Blockhead
NightDivine
NightDivine's Avatar
To clarify, I have made the thread on the fact that I understand how to code in java. I know most programming based stuff that should be considered basic (references, functions/methods, classes, constructors, if statements, while/for loops, switch case, try and catch and all that. Not very sure on things like generic classes though. I was told that advanced trigonometry was needed for certain effects/particle movements like double helixes as well. I am an 8th grader so only exposed to a bit of trigo (toa cah soh)
1
10/12/2016 6:53 am
Level 1 : New Network
AgentSwampy
AgentSwampy's Avatar
Ah ok, sorry didn't see that thread Apart from referencing you to the Spigot API, there isn't much more that I know. Good luck with finding what you need anyway.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome