1

How to easily make Bukkit Plugins <- Easy Tutorial

BitBox's Avatar BitBox11/21/14 5:11 pm
1 emeralds 1.2k 14
11/25/2014 4:03 pm
BitBox's Avatar BitBox
https://bukkittuts.wordpress.com/
I created an in depth tutorial on creating your first bukkit plugin!

It covers everything, and all things are explained in detail

Check it out!

https://bukkittuts.wordpress.com/
Posted by BitBox's Avatar
BitBox
Level 42 : Master Modder
26

Create an account or sign in to comment.

14

1
11/25/2014 4:03 pm
Level 42 : Master Modder
BitBox
BitBox's Avatar
Bump
1
11/22/2014 3:54 pm
Level 42 : Master Modder
BitBox
BitBox's Avatar
Nearly at 100 views!

Thanks!
1
11/22/2014 1:23 pm
Level 42 : Master Modder
BitBox
BitBox's Avatar
Ok. Thanks very much
1
11/22/2014 7:27 am
Level 18 : Journeyman Hunter
Ciberg
Ciberg's Avatar
For someone who knows nothing about bukkit, this is a pretty bad tutorial. You just threw code at them basically. In one part you did getServer(), and the only explanation you provided was it is getting the server. No one is going to know what that means, I mean it obviously it gets the server but what does that actually do? I'd work on explaining things a little more in-depth.
1
11/22/2014 7:33 am
Level 42 : Master Modder
BitBox
BitBox's Avatar
Thanks for the feedback.

Do you have any other suggestions on how to explain it in more depth?
1
11/22/2014 7:13 am
Level 24 : Expert Archer
Lukerocks1233
Lukerocks1233's Avatar
cool
1
11/22/2014 7:24 am
Level 42 : Master Modder
BitBox
BitBox's Avatar
Thanks!

I am currently working on the next installment, a shorter one about commands and permissions.
1
11/22/2014 7:10 am
Level 42 : Master Modder
BitBox
BitBox's Avatar
Fair point
1
11/21/2014 5:32 pm
Level 42 : Master Modder
BitBox
BitBox's Avatar
All the images are now working
1
11/21/2014 5:19 pm
Level 42 : Master Modder
BitBox
BitBox's Avatar
Thanks very much.

I'll work on it!
1
11/21/2014 5:17 pm
Level 36 : Artisan Dragonborn
creeoer
creeoer's Avatar
@BitBox
Why do you not require people to know java? People should just go to you for good api knowledge, not java knowledge. By revolving all of your teachings around the bukkit api, people willl mistakenly take bukkit api knowledge for actual java knowledge. And do things like put public static void before every method not knowing what any of them mean. Which is part of the reason the plugin dev forums are spammed with users who ask things like "How do i put a bunch of players in a list" <Collections


**That is just my opinion, no personal offense taken torwards you dude.
1
11/21/2014 7:26 pm
Level 14 : Journeyman Modder
searchndstroy
searchndstroy's Avatar
Because, if you know Java, you can do things with more performance / ease.

Take this as an example:

// Formatting a kick message in a kick command.

String message = "";

for (int i = 1; i < args.length; i++) { // May not know how to use a for loop.
message += " " + args[i];
}

message = message.replaceFirst(" ", "");
// This is a a stupid way to format a message. (Creating unneeded StringBuilder objects, which will stress the CPU and the GC.)

// Here's the better way:

StringBuilder messageBuilder = new StringBuilder();
String message;
for (int i = 1; i < args.length; i++) {
messageBuilder.append(" ").append(args[i]);
}
message = messageBuilder.replace(0, 1, "").toString();


Now, another issue arrives. If you don't know Java, and you get a Java related error, what do you do? Google? Google only goes so far. Java related errors can (and have) cause severe issues, such as crashing. I forgot one time that I should never iterate through a map and edit the values. (Map.keySet();) Know Java so you don't make fatal mistakes, and, so you can catch those mistakes before they happen. Also, a final thing, knowing Java will make your code look prettier. It will shorten the amount of lines you have to write, and, overall, will make your job as a developer much easier. Compare these two projects:

[url]github.com/Searchndstroy/CustomEnchants[/url]
[url]github.com/Searchndstroy/CustomEnchants-API[/url]

Which is easier for developers to bug check, understand, use, and most importantly, improve?
1
11/21/2014 5:20 pm
Level 42 : Master Modder
BitBox
BitBox's Avatar
I see your point, however at this level that I am currently at in the tutorial I don't really think Java knowledge is required.

Thanks for the opinion though
1
11/21/2014 5:15 pm
Level 1 : New Network
DevKTK
DevKTK's Avatar
**BugReport** Some of your pictures on your website are blank you should fix them
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome