HomeНаука и техникаRelated VideosMore From: techtoolbox

CREATING COMMANDS | How to Make A Basic Bukkit Plugin

1060 ratings | 46668 views
Hello. I have recently been doing a lot of coding with Bukkit, and I thought that I could share some of the things that I have personally learned with you guys. I spent over 4 days on this episode, so any likes and subscribes would be welcome. Thanks! ALSO ~ Please let me know if you like the new design, I would greatly appreciate it ;D JDK and JRE download: http://www.oracle.com/technetwork/java/javase/downloads/index.html Eclipse IDE: http://www.eclipse.org/downloads/packages/eclipse-ide-java-developers/neon2 PasteBin (all source code for this video): http://pastebin.com/grLuKseZ » Need something to do? « ‣ TechToolbox Awards: https://goo.gl/Rki8i7 ‣ Visit my website (I know): http://goo.gl/g4iyl1 »Follow me« ‣ http://goo.gl/eX37SI For business inquiries, contact: [email protected] Please email me for questions about products, videos, or any other business related things. -TechToolbox
Html code for embedding videos on your blog
Text Comments (345)
Norbert Mojsej (4 days ago)
Great video mate..!
blade 98 (8 days ago)
Can't you just use notpad++ instead of eclipse?
Bright Mango (11 days ago)
daddy you're amazing
承鴻 (17 days ago)
承鴻 (17 days ago)
iS4vaqe2 (22 days ago)
can console.log("Message"); counts as a java function or its only a javascript one? whenever i use console.log("message"); it appears as javascript, can i use it for java?
techtoolbox (2 days ago)
An insane amount of people have been asking me to make an updated version of the series. I am planning to do it despite not wanting to do it earlier, but what would you guys want to see tutorials for? EDIT: I started a new series for 2018 and this time I'll actually make more than one episode! Hopefully the production quality and content will be better since I have learned a lot about Java and Spigot over the past few years.
iS4vaqe2 (16 days ago)
The Anarchist, the essentials plugin has that ability, you can set warps for world spawns, download essentials here https://hub.spigotmc.org/jenkins/job/Spigot-Essentials/ download the Essentials-2.x-SNAPSHOT.jar that has all of it
The Anarchist (16 days ago)
I would love to see a spawn plugin, just for the ability to set the worlds spawn and teleport there
xRengo (20 days ago)
techtoolbox I'd like a guide for coding a custom anticheat for killaura checks
iS4vaqe2 (22 days ago)
do a tutorial on javascript instead of java (For example) const Client = require("Random_file"); const Client = new.Client(); Client.on("Ready", function() { console.log("Client ready!"); }); I dont know what the fuck im coding but im showing an example lol
The Best (28 days ago)
u Suck i came here to learn not to copy from pastbin
techtoolbox (28 days ago)
Only one line of code is mandatory to copy from pastebin.
Bigbang32 (29 days ago)
Make an updated version for 2018
Bitshawn (1 month ago)
Please follow up
Karl Henderson (1 month ago)
pretty good, but just one thing... EW... APPLE!!!
ostue (1 month ago)
I love ya! Thanks for the Tutorial! You're amazing!
Everyday Alex MTV (1 month ago)
Please help before u do the command generator it didn't say my command is wrong I typed DisguiseCommand
Doggy (1 month ago)
Do you plan on making this a series.. or?
Doggy (1 month ago)
Why is that? You literally have the most precise tutorial for plugins?
techtoolbox (1 month ago)
Not anymore.
Kosmetical (1 month ago)
Uhh... Can you please help me? When i do >Properties>Libraries>Add External JARs - i can't click Add External JARs, the button and all the buttons are just faded and i cannot click them. Help!
Minecraft Bros (2 months ago)
this guy know how to make a plugin thx for tutorial
Dusan Dusan (2 months ago)
Damn why u can't just do tutorial, no u explein like I'm frist time learn java
Samurai Gaming (2 months ago)
Fucking copy intro to MumboJumbo cunt!
What program rec you with?
Mr Wener (2 months ago)
GamerProPlays / OP EXPLOSION / Scary Minecraft OBS Studio i think
The Bioticwolf (2 months ago)
This is great quality video for a channel at 1.2k subs. You have earned my sub just for that.
PaulBerkers (2 months ago)
Great! Your voice is awesome to listen to :)
__Koala (2 months ago)
Can you make a tutorial on making and moving sprites in c++?
__Koala (2 months ago)
Thank god ur not one of those guys that explains how to copy and paste. Like why are you trying to code if you can't even copy and paste. Smh
Polgy the Lamp hunter (2 months ago)
As I expected, I am complete idiot and can't get even this basic thing to work.. well.. I guess I'll go back to doing nothing again.. My plugin doesn't even show up in /pl, so.... yea.. I don't know what's wrong.
Mr Wener (2 months ago)
Polgy the Lamp hunter Oh, okay
Polgy the Lamp hunter (2 months ago)
Thank you for trying to help, but I already removed everything from my computer (I only have my testserver) I'll never be good at this.
Mr Wener (2 months ago)
Polgy the Lamp hunter Do you need help?
osal (2 months ago)
Where did u learn how to code I really want to know I just started yesterday coding on pycharm and java. I like Java the best though.
Mr Wener (2 months ago)
Tony PlaysMC You can learn coding from websites, books
Isak Spenser (2 months ago)
Ravens new. Server = play.minesaga.org
Mr Wener (2 months ago)
Better would be: Ravens rave = new Ravens("play.minesaga.org); (͡° ͜ʖ ͡°)
Conner Gaming (2 months ago)
It keeps saying jvm needs to be a higher than 1.8 and I have installed java 1.8 and higher and it still doesn;t work
Conner Gaming (2 months ago)
300th comment
Thymester (2 months ago)
Here is the Plugin I made for minecraft servers!! I used it for a while even! https://dev.bukkit.org/projects/antigrief
Cronix (2 months ago)
Hi I was on the public class Mainclass extends JavaPlugin { and it didnt have the import option please can you help me
Jared (2 months ago)
Very nice.
IceyBird (2 months ago)
Doesn't work, can someone PLEASE help me: discord: IceyBird#2064
Could not load 'plugins/TesterPlugin.jar' in folder 'plugins'
I had an error
The1RedBandit (3 months ago)
Can anyone explain how to get the green text on plugin.yml? I tried it and this wont work.
GameTime (3 months ago)
And if i have it the words dont go green how do i fix this
Mr Wener (2 months ago)
GameTime Add me on ds: Mr. Wener#5105, i will try to help you
GameTime (3 months ago)
If i try to add the plugin.yml folder it opens a notepad how can i fix this???
Mr Wener (2 months ago)
GameTime Use Eclipse-editor
Mattias van der Wal (3 months ago)
What do you use to edit?
techtoolbox (3 months ago)
Final Cut Pro X is what I use :)
David (3 months ago)
implements mean you adding interface type class, what it does? it's giving you access to all what it is inheritance, but the difference between inheritance and interface is that Inheritance allows to "inherit" the members of a class - it's instance variables and instance methods. "Inherit" means, in Java, a "child" class that extends another "parent" class will implicitly be able to use functions of the parent class, without ever having explicitly defined those members in the child class. So when you have a group of similar classes, like different car types that would all have an equal "drive method", instead of having to implement the same method over and over again, you can define a "parent" class "Car" and implement a drive method once in this class, then you can have "child" classes "BMW", "Porsche", "Toyota" extend this "parent" class, and implicitly each of these sub classes can make use of the inherited method "drive" of the Car class.
Arthur Gatignol (3 months ago)
When I clicked on this video I told myself: "Oh no... A noob that try to teach us how to code...". I was wrong. You are explaining things really well and the quality of the video is awesome! Thanks a lot for this video!
James Lloyd (3 months ago)
Pleaaaaaaaaaase make a #2 its been 1yr!!!!!!!!!!
David (3 months ago)
6.10 short cut for it is type "sout" and click enter
David (3 months ago)
5.10 no you are wrong it's not showing it's borrows from Javaplugin class(it's now a parent class) parameters to Main - inheritance
David (3 months ago)
How old are you?
techtoolbox (3 months ago)
I was 12 when I made this video.
Roman Vašek (3 months ago)
Please make new episode
Mr Wener (2 months ago)
Roman Vašek Czech, Slovak?
JaMaMaa1 (3 months ago)
I wish my school classes taught Java, it seems so foreign...
Thomas Roblin (3 months ago)
How did you learn this?
Teh_Matt_GR (4 months ago)
Thanks you are the best!
초치 (4 months ago)
[ERROR]: Could not load 'plugins\Tutorial.jar' in folder 'plugins' org.bukkit.plugin.InvalidDescriptionException: commands are of wrong type at org.bukkit.plugin.PluginDescriptionFile.loadMap(PluginDescriptionFile.java:941) ~[PluginDescriptionFile.class:KCauldron-1.7.10-2.1403.1.54] at org.bukkit.plugin.PluginDescriptionFile.<init>(PluginDescriptionFile.java:232) ~[PluginDescriptionFile.class:KCauldron-1.7.10-2.1403.1.54] at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:193) ~[JavaPluginLoader.class:KCauldron-1.7.10-2.1403.1.54] at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:133) [SimplePluginManager.class:KCauldron-1.7.10-2.1403.1.54] at org.bukkit.craftbukkit.v1_7_R4.CraftServer.loadPlugins(CraftServer.java:320) [CraftServer.class:KCauldron-1.7.10-2.1403.1.54] at net.minecraft.world.storage.SaveHandler.initBukkitData(SaveHandler.java:461) [ayq.class:?] at net.minecraft.world.storage.SaveHandler.func_75757_d(SaveHandler.java:137) [ayq.class:?] at net.minecraft.world.World.<init>(World.java:349) [ahb.class:?] at net.minecraft.world.WorldServer.<init>(WorldServer.java:153) [mt.class:?] at net.minecraft.server.MinecraftServer.func_71247_a(MinecraftServer.java:356) [MinecraftServer.class:?] at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:335) [lt.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:620) [MinecraftServer.class:?] at java.lang.Thread.run(Unknown Source) [?:1.8.0_151] Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Map at org.bukkit.plugin.PluginDescriptionFile.loadMap(PluginDescriptionFile.java:923) ~[PluginDescriptionFile.class:KCauldron-1.7.10-2.1403.1.54] ... 12 more Do you guys know why this is happening to me? If you guys know, please answer...
Mr Wener (2 months ago)
초치 You have mistake in config
Moog Williams (4 months ago)
Yo dude? what happened to "extensive series"? That was the best tutorial ive seen.
techtoolbox (4 months ago)
Yeah... unfortunately I really do not have any plans to continue the series unlike I initially planned to. Sorry about that, mate.
Moog Williams (4 months ago)
what will you be using? java? C#?
Mr Wener (2 months ago)
Moog Williams It's JAVA
Man your good. [EDIT:] you copied mumbs intro
Xemor (4 months ago)
``` java.lang.NullPointerException at com.Xemor.MainPackage.Main.onEnable(Main.java:12) ~[?:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[server.jar:git-Spigot-db6de12-18fbb24] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340) [server.jar:git-Spigot-db6de12-18fbb24] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [server.jar:git-Spigot-db6de12-18fbb24] at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.java:357) [server.jar:git-Spigot-db6de12-18fbb24] at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.java:317) [server.jar:git-Spigot-db6de12-18fbb24] at net.minecraft.server.v1_8_R3.MinecraftServer.s(MinecraftServer.java:414) [server.jar:git-Spigot-db6de12-18fbb24] at net.minecraft.server.v1_8_R3.MinecraftServer.k(MinecraftServer.java:378) [server.jar:git-Spigot-db6de12-18fbb24] at net.minecraft.server.v1_8_R3.MinecraftServer.a(MinecraftServer.java:333) [server.jar:git-Spigot-db6de12-18fbb24] at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:263) [server.jar:git-Spigot-db6de12-18fbb24] at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:525) [server.jar:git-Spigot-db6de12-18fbb24] at java.lang.Thread.run(Unknown Source) [?:1.8.0_151] ``` Any help with this? It's occuring immediate;y after my start up message inside of onEnable(). I believe it's from the this.getCommand("ping").setExecutor((CommandExecutor)new Ping()); bit in my code
minecrafteestar (4 months ago)
Actually that line is correct i had the same problem its the spacing in the plugin.yml file! commands: spawn: usage: /<command>
JGPWN_ Storm (4 months ago)
when i type it in it just repeats what i typed into chat
Mr Wener (2 months ago)
EXP Vortexx You've mistake in config or in command initializing
Emil Dahlén (4 months ago)
to be real your not that old but you make it sound easy and make me understand so good job :D
Hardcore Gaming (5 months ago)
mate my first program project is finished thnx for your tutorial
George Deane (5 months ago)
whats the code to link the both scripts ??
xo Categorizing (5 months ago)
My eclipse, an error has occored. What to do?
Mr Wener (2 months ago)
ɴs cheaterxd Please describe error
Matt Gallant (5 months ago)
turn down the damned music at least xD
derp 556 (5 months ago)
11/10 tutorial part two?
derp 556 (5 months ago)
techtoolbox ok thanks anyways, cool channel
techtoolbox (5 months ago)
Unfortunately, I have no plans to make another tutorial as these videos take quite some time to create and most of my audience does not care about such content. Although I'm glad you enjoyed this video! Many other people have done videos about Bukkit plugin development that go more in-depth into the subject, so I'd suggest giving those tutorials a try.
SuperHD (5 months ago)
I have problem with a command
techtoolbox (5 months ago)
I'd suggest looking about on some forums for help with issues you might be having.
Autumn Oakdaughter (5 months ago)
I am going to attempt to make a horse plugin for my server since no plugin creator is either available or don't want to make a horse plugin xD
Jorikas (5 months ago)
bro! you are the beast here! you deserve much more subs. most people speek like they didn't sleep and dont explain anything. Thank you so much. All the other tutorials made me think that its very hard! Your video shows how easy it is! thank you :)
DeathWing987 (5 months ago)
Will this work for spigot?
SadXOnTheWay (5 months ago)
geckoguy221 (6 months ago)
omg the best tutorial ever <3333333
NorteX (6 months ago)
Cmon! Where is second ep?!
techtoolbox (5 months ago)
Unfortunately, I have no plans to make another tutorial as these videos take quite some time to create and most of my audience does not care about such content. Although I'm glad you enjoyed this video! Many other people have done videos about Bukkit plugin development that go more in-depth into the subject, so I'd suggest giving those tutorials a try.
Widdy (6 months ago)
we NEED a part 2!
techtoolbox (5 months ago)
Unfortunately, I have no plans to make another tutorial as these videos take quite some time to create and most of my audience does not care about such content. Although I'm glad you enjoyed this video! Many other people have done videos about Bukkit plugin development that go more in-depth into the subject, so I'd suggest giving those tutorials a try.
LucasGamer213 (6 months ago)
Itz End3rK1ng (6 months ago)
Ти си педерас
Pro ROBLOX & More! (6 months ago)
It says unknown command help
Mr Wener (2 months ago)
Pro ROBLOX & More! You maybe did't registered it
The MCPE Pro (6 months ago)
Can't you just go find a plugin online copy paste it *BOOM*
Daniel Ladeira (3 months ago)
Haha! Nice joke MCPE Pro, but remember, never claim it as yours. We plugin/mod developers put hours of work into our plugins and we want to be proud of them all over the internet, join us and help us prevent mod/plugin reposts. Join us: http://swiftation.com/3v9s
Northan (6 months ago)
Well you can't get a plugin perfectly plastered to your server
VEGA (6 months ago)
Well if you plan on claiming it as your own.
Pro ROBLOX & More! (6 months ago)
Thats called "stealing"
Mystic Coding (6 months ago)
Antonio Jerome (6 months ago)
Amazing tutorial
Pro ROBLOX & More! (7 months ago)
it says spelling is incorrect help!!!!!
Pro ROBLOX & More! (7 months ago)
nvm fixed it
DrunkenCatInc (7 months ago)
10/10 on everything! Very helpful!
DrunkenCatInc (7 months ago)
Awesome job, coulden't say I could do better myself! XD
Stanley (7 months ago)
Where is Episode 2?
NorteX (7 months ago)
Do.. second.... PAAAART!!!
ERliTO l (7 months ago)
LEL : Mumbo Jumbo intro song.
MrMysterious Gamer (7 months ago)
You earned a sub
RainbowCubes (7 months ago)
U copied jumbo jumbo for ur intro music
yoshithemajor (7 months ago)
Hey techtoolbox, thanks for the tutorial! One quick question, when I've compiled it and run it in my test server, it says Could not load 'plugins\BanGUI.jar,' in folder 'plugins' org.bukkit.plugins.InvalidDescriptionException: version is not defined. I have put under version: 1.0. Can you assist me in any way?
Creed x Ender (7 months ago)
Okay, I didn't get any green text in the plugin.yml bit, nor is my plugin working in the "run" app. Not sure what's going on, but I got sent to a marketplace app when I tried to save the yml? I'm quite confused here.
Creed x Ender (5 months ago)
You weren't too late by a long shot. Thanks!
Kevin D. (5 months ago)
Creed x Ender that is because your computer doesnt know how to open .yml files, make sure you download the eclipse Yml editor (it should be one of the options that pop up when you try to open the .yml file in eclipse) sorry if i was too late and you already solved it
Sana Rinomi (7 months ago)
WTF! I heard the voice of what sounded like a 12 year old, but nope, that is not what I got. I got someone with good audio, good editing skills, explains and also gives facts...
Scopez (7 months ago)
Doc Cam (8 months ago)
Hey tech can you please make a video about doing mods if you already haven't I need to know how to download cool mods on my windows pc
Bob smith (8 months ago)
Is there a way to add multiple commands in one pluggin
Daniel Rodrigues (8 months ago)
How do I do a /spawnset ?
Daniel Rodrigues (8 months ago)
Will the plugin work for 1.8+?
Daniel Rodrigues (8 months ago)
Where do I get that thing at 3:14?
BuZzTY (8 months ago)
Ayeee Donald T (8 months ago)
This is a sub man 10% HELPED THANKS
Mariusz Kowalski (8 months ago)
When i typing /tutorial it's send me message /tutorial
When i tried to export at the begging it says Jar Creation failed see additional information what should i should i ignore it please tell me! ASAP
TheUltimateGamer King (8 months ago)
Video is very professional and well edited. Good job.
Keyboard = R.I.P God bless him ):
Umber (8 months ago)
I'm very surprised with the quality. This is one of the best tutorials I've seen and especially at such a young age. You did a fantastic job. Explanation: 10/10 Video Editing: 10/10 Audio: 10/10 Overall Quality: 10/10
OkxyAdii (8 months ago)
Omg i just learned how to CODE! :D And this is almost the best video ive seen! :D thanks buddy! :D btw ALMOST 800 Subs <3
AlphaGamer (8 months ago)
Nice tutorial I've never seen anything like it you are pretty impressive!
itsFrøsty GAmInG (8 months ago)
Can u make plugin for me plz
itsFrøsty GAmInG (8 months ago)
techtoolbox can u?
itsFrøsty GAmInG (8 months ago)
techtoolbox version 1.8 or 1.9 plugin type Fairy Tail
techtoolbox (8 months ago)
+itsFrøsty GAmInG I guess I can. What would you like it to do and for what version?

Would you like to comment?

Join YouTube for a free account, or sign in if you are already a member.