HomeРазвлеченияRelated VideosMore From: VerveDev

How to Make a Minecraft Plugin | First Plugin (Ep. 1)

520 ratings | 31864 views
Minecraft Hositing - https://pixelhost.org In Episode 1 of how to make a Minecraft plugin we begin with the basics of setting up your first IDE (integrated development environment) and how to code your first Minecraft plugin. Link to download eclipse: http://www.eclipse.org/downloads/eclipse-packages/ Link to download Java JDK: http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html Link to download spigot buildtools: https://hub.spigotmc.org/jenkins/job/BuildTools/ you can also find other videos on youtube on how to properly download all the spigot versions Social Media: Twitter - https://twitter.com/NikoTheDev Website - https://pixelhost.org Spigot Profile - https://www.spigotmc.org/members/mrbandit.143433/
Html code for embedding videos on your blog
Text Comments (197)
VerveDev (7 months ago)
Everyone who is saying that they don’t know whats wrong with their plugin etc. Please actually read the errors that are getting spit in your console. Do not think I showed how to do it wrong it’s obviously right if it works while I show me using the plugin on the server. Your errors are all mistakes of placing brackets or not placing certain characters. Pay close attention to what you guys are doing. PLEASE.
LetterSlayer (19 days ago)
Yeah, about that. I don't know what's wrong with my plugin. No errors, nothing looks out of place, followed everything step by step. Running pl and /pl in console and in game shows 0 plugins running. My command doesn't work. Yay.
spidertyler 2005 (2 months ago)
plz help getCommand doesnt exist
The Professional Gamer (3 months ago)
NICE, But I wanted to create a plugin that removes brackets :( can you remove it? WITHOUT essentials chat?
Islamic Naheed (4 months ago)
Give Link To Download This Plugin!
ARFour (5 days ago)
i need help I did everything correctly and the plugin doesn't show up on console
Ash the Snowman (5 days ago)
What if u want bukkit?
Derpeh (8 days ago)
Come back please, you are very helpful
Tech Tips (19 days ago)
Thanks! It works great!
MatStar15 MatStar15 (19 days ago)
in "plugin.getCommand.setExecutor(this);" it signs in red getCommand. waht can i do?
MatStar15 MatStar15 (13 days ago)
+Tech Tips it doesn't works
MatStar15 MatStar15 (18 days ago)
+Tech Tips ok thx ill try
Tech Tips (19 days ago)
Did you put this.plugin = plugin; and did you also put private Main plugin; ??? You may have to import org.bukkit.Bukkit;
SargentKneller (28 days ago)
could u get a download link for all the jars u have?
SkyPlex Romania (1 month ago)
What BuildTools is for? it s a plugin for minecraft?
Jeppe Thodsen (23 days ago)
It is a package (kinda thing) where you get both Spigot and Craftbukkit from. You can select versions you want from the build tools too.. but kinda hard for me to explain..
SkyPlex Romania (1 month ago)
did u code the www.pixelhost.org?
SkyPlex Romania (1 month ago)
dude www.pixelhost.org is the best!
Buddy Burlison (1 month ago)
love the simplicity in your video. not to detailed but not to heavy hope to see some new stuff in the future!
E Monkey (1 month ago)
Mfw you can’t figure out how to download eclipse 😂
Hibbix (2 months ago)
Thanks for a great tutorial! Everything worked! :D
kamalyaka (2 months ago)
ComicalMC (2 months ago)
I was your 500th subscriber!
ImM7mqd - Latix (2 months ago)
Tnx it worked 💙
Roman Treskov (2 months ago)
Where i need to but, BuildTools?
TheDevilWithin (2 months ago)
I opened up the folder inside of the winrar, and IDK what to open up
TheDevilWithin (2 months ago)
Nvm, forget it
l Kortezz l (2 months ago)
you type to fast for me to catch up
Adam P. (3 months ago)
has anybody made money off of doing this for a server??
Pyrodamix (1 month ago)
VerveDev (3 months ago)
Adam P. Hundreds of people make money from plugins. However, the industry has been slowly dieing the past 2 years
Sharifee (3 months ago)
Does this still work with 1.13?
HD_Official (3 months ago)
i need help, with this plugin.getCommand("hello").setExecutor(this); its says that the method getCommand(String) is undefined for the type Main
HD_Official (2 months ago)
I think it might of changed over the Last year or something cud i have watched some other tutorials and they don't do that command anymore.
spidertyler 2005 (2 months ago)
me too :(
Simpleen (3 months ago)
For me the plugin does'nt even show up in /plugins.
Simpleen (2 months ago)
+ThunderEOW - NoCheats you cant have your package name the same as your name. Example: me.name.name You cant do that.
ThunderEOW - NoCheats (2 months ago)
what did you do?
Simpleen (3 months ago)
Nevermind i spent all day working it out.
Herobrine Sky (3 months ago)
Do coding have difficult ?
Herobrine Sky (1 month ago)
0cp it is easy ?
0cp (1 month ago)
MemeSong TV (3 months ago)
Im learn Java from 8 first learn whole laung then fuck with this
aryan bharti (3 months ago)
Sick bro
ItsMat (3 months ago)
how do you not have 100k subs as of today...
Caleb Britannia (3 months ago)
Great tutorial, annoyingly most of the tutorials assume we don't know any java. Personally I think you should at least learn what a method is and the 8 primative data types (9 including string) but still, very helpful learning the spigot api.
Snerfo (3 months ago)
Your voice is really nice to listen to :)
FoxMasterYT (3 months ago)
Where are you form?
Morgan Smith (4 months ago)
Hey! As I don't have the time I was wondering if you could make me a plugin for a server? I will pay, but my budget is low. Could we make this possible? I pay via Paypal. Thanks.
Morgan Smith (4 months ago)
How much do you usually want for a plugin?
VerveDev (4 months ago)
Morgan Smith i spend most of my time with my marketing agency irl so unless the budget is significant enough I won’t be able to provide my time
Paul Jones (4 months ago)
Your instructions do not work. They skip over the bits we need to know and drag out the bits we don't care about.
Fruit Soup (4 months ago)
The command shows up in the /help menu, with the description but when type /hello in the console, nothing happens, not even an error. Any ideas?
Mr.AyaPapaya (4 months ago)
how to u make that sign infront of Override?
Jeppe Thodsen (23 days ago)
AltGr + 2 ;)
Tom Zo (4 months ago)
that means your virtual keyboard is set to UK. Set it back to US or do shift + "
Mr.AyaPapaya (4 months ago)
it didn't work the only thing that showed up was: ""
Mr.AyaPapaya (4 months ago)
Travis Samuelson (4 months ago)
Shift, 2
When i try to type } else{ it says that i should delete the toke, please help!
OriginalPGR (5 months ago)
13:15 - When you're doing a tutorial and then you have a Vietnam Flashback
Zachary (5 months ago)
When I go to install BuildTools through Git Bash I get a bash: java: Command not found error. I've reinstalled Java twice and it's still doing this, what could be wrong?
Fares_Gamer (5 months ago)
i can do /GiveRank or /afk command i wanna do /GiveRank [player name] [Rank] (youtuber , owner , admin , vip , mvp , etc)
Aaron Mitchell (13 days ago)
i think you might have figured this out already, but i think thats what the arguments are for in onCommand
Samuel Putai (5 months ago)
Loved the tutorial. Wondering why I keep getting this error message though. I have used the same bukkit.jar for the server as well as in eclipse but I keep getting this: [Server] ERROR Could not load 'plugins/tutorial.jar' in folder 'plugins' I followed every instruction. Not sure why it won't work for me?
ItzDerock (5 months ago)
more info needed. Usally it will say [Server] Error at myplugin.me.name.Main (a number) Java.somthin
Samuel Putai (5 months ago)
Is it because I called it tutorial.jar? xD honestly not sure why it doesn't work
Restudy (5 months ago)
so when I download eclipse it turns into a .zip file and I don't know what to do next. ive tried running the .exe application inside but it doesn't seem to be working correctly.
potatodwarf123 (5 months ago)
u havta extract it and inside the extracted file will be eclipse
The Bioticwolf (5 months ago)
After I figured out how to get the package in the other package correctly everything worked perfectly! I'm using 1.12 and this is by far the best HelloWorld plugin tutorial I've seen all day! Thx for the video man!
B4N4FT0R (5 months ago)
And how did you manage to do that? Cant drag it in nor does creating inside actually work
Cashton (5 months ago)
Wow it's not working >:(
VerveDev (5 months ago)
Cashton then you did it wrong 😐
Reckless Nuke (6 months ago)
Hello, idk if you will see this but a friend and I are looking for someone to work with us creating custom plug ins. it would be of great help if you could help. We do offer payment if you are willing to help. please and thank you <3.
VerveDev (6 months ago)
You may send me an email at [email protected]
daoek (6 months ago)
for people who the command does nothing replace " new HelloCommand(this); " with getCommand("hello").setExecutor(new HelloCommand(this)); this worked for me :p
VerveDev (6 months ago)
Or actually, type what I have typed and it should work perfectly. The method I have shown is most efficient, the way you are explaining is not what so ever. Good luck :)
Brionte Hill (6 months ago)
I get an error in eclipse, it looks like this *The method getCommand(String) is undefined for the type Main*
HD_Official (3 months ago)
Brionte Hill hey, i have the same problem and i was wondering if u found out how to fix it.
ZouS PantS (6 months ago)
I tried to do this two times but i got errors Could not load 'plugins\FirstPlugin.jar' in folder 'plugins' org.bukkit.plugin.InvalidDescriptionException: commands are of wrong type at org.bukkit.plugin.PluginDescriptionFile.loadMap(PluginDescriptionFile.java:917) ~[spigot-1.12.2.jar:git-Spigot-2086bb0-21d5f75] at org.bukkit.plugin.PluginDescriptionFile.<init>(PluginDescriptionFile.java:226) ~[spigot-1.12.2.jar:git-Spigot-2086bb0-21d5f75] at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:157) ~[spigot-1.12.2.jar:git-Spigot-2086bb0-21d5f75] at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:133) [spigot-1.12.2.jar:git-Spigot-2086bb0-21d5f75] at org.bukkit.craftbukkit.v1_12_R1.CraftServer.loadPlugins(CraftServer.java:305) [spigot-1.12.2.jar:git-Spigot-2086bb0-21d5f75] at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:205) [spigot-1.12.2.jar:git-Spigot-2086bb0-21d5f75] at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:545) [spigot-1.12.2.jar:git-Spigot-2086bb0-21d5f75] at java.lang.Thread.run(Unknown Source) [?:?] Caused by: java.lang.ClassCastException: java.base/java.util.ArrayList cannot be cast to java.base/java.util.Map at org.bukkit.plugin.PluginDescriptionFile.loadMap(PluginDescriptionFile.java:899) ~[spigot-1.12.2.jar:git-Spigot-2086bb0-21d5f75] ... 7 more and i have no clue what i'm doing wrong // nice tutorial explaining it very well https://pastebin.com/bWxFyavP
MudManSon (7 months ago)
Need help at 7:43
Krag (7 months ago)
https://gyazo.com/55666060c6a84573a03c363174c44d11 Literally does not work
Charles (7 months ago)
There is a reason why this video dident get 9,272 likes.
VerveDev (7 months ago)
MrCake and whats the reason?
spidertyler 2005 (7 months ago)
Bigger font plz!!!!!!!!!!!!!!!
Ronaldgameking channal (7 months ago)
Error Unexpected: https://gyazo.com/9408eb4ad471febeedc5dd28a27efbfb
Ronaldgameking channal (7 months ago)
Errors! http://www.mediafire.com/view/0ykqcf0uo00de5u/Bad_thing_need_fix.png
Ronaldgameking channal (7 months ago)
fixed, had to replace - with =
Ronaldgameking channal (7 months ago)
The VAR doesn't work
DelltaDragon (7 months ago)
ok let me start this off with great tutorial! I've wanted to get into multiple classes for a while but others just beat around the bush with them but.... I spent the whole day doing this and I'm still stuck even after trying to re-write it all out. (https://hastebin.com/odupejipok.java https://hastebin.com/exahiyoxaf.md) these are the errors I'm getting...
VerveDev (7 months ago)
And read your console, it clears says invalid description. You need a “:” beside aliases. Aliases: [hi]
VerveDev (7 months ago)
DelltaDragon read your plugin.yml
GeometryCraft Rox (8 months ago)
Can i use bukkit as well?
DevOfLua (4 months ago)
bukkit and spigot are the same
Burrgundy (8 months ago)
To add colors do § [Color Code]
VerveDev (8 months ago)
EhsaanPlays not everyone knows how to make that symbol, and in the Minecraft community using & has become second nature.
Nake (8 months ago)
I'm confused :/ Help? https://gyazo.com/7e1888339faf1bcef97b615c1d597841
Nake (8 months ago)
Nevermind, fixed.
Drink Bleach (9 months ago)
I just spent hour on this thing
NG Subliminals (9 months ago)
how do i download eclipse? i cant when i do idk what to do i finish downloading it and nothing happens
NG Subliminals (9 months ago)
"Minecraft Hositing" error in desc
JackThePug (9 months ago)
I did pretty much what you did but with my development company website
JackThePug (9 months ago)
edit: for the package
ItzDerock (9 months ago)
My command doesn't work. It worked then I made the plug-in how I wanted and now... Unknown command. I have 3 different commands: /ppstart /ppdied and /ppjoin
Jeppe Thodsen (23 days ago)
hehe he said pp (peepee)
JagGillarCS Dab (9 months ago)
https://hastebin.com/osuxazeqas.java Hey! I tried making a plugin for our server that will show our Discord channel. From what I see I've done everything correctly and can't find the issue. If you had time over it would be nice if you helped me a bit, hehe. Great tutorial though, you earned yourself a subscriber!
JagGillarCS Dab (9 months ago)
I also changed the "Player p - (Player) sender;" to "Player p = (Player) sender;"
JagGillarCS Dab (9 months ago)
I re-did EVERYTHING! But it still won't work... https://hastebin.com/pesaxunuvi.java
JagGillarCS Dab (9 months ago)
Ok, I don't have time rn but I will do it later, thanks!
VerveDev (9 months ago)
JagGillarCS Dab yes more errors. Once again bracket placements. Pay close attention to mine. I would recommend starting ur command class from scratch so that you may better understand the lesson.
JagGillarCS Dab (9 months ago)
Hey, thanks for the quick respond! Although I changed it up it still wouldn't work? Maybe a couple of more errors somewhere else? Cheers!
Random Pubg Clips (10 months ago)
I don't understand why it's not working, everything works fine until I put the jar into my plugins folder for my server, it just doesn't register it in /plugins, nor does /hello work.
VerveDev (10 months ago)
Also your plugin.yml is incorrect. Add two spaces before aliases and description under hello:
VerveDev (10 months ago)
Random Pubg Clips obviously my code works, i show exactly how to do it. You most likely missed a step.
Random Pubg Clips (10 months ago)
Update to that, it doesn't work at all, doesn't register the plugin. https://hastebin.com/anoyufirox.java that is what I did.
Random Pubg Clips (10 months ago)
Nvm I figured it out, you never said to do the "ctrl + shift + o" but I saw you need to do it to import it in other videos
VerveDev (10 months ago)
Put your code into a hastebin and link me.
LoganSonicWave (10 months ago)
For me 2 Install Eclipse, what do i do? i have the Zip folder and 2 .exe files, what do i do? xD
The Girl GG (10 months ago)
You go out of the zip file and right click it. Then click "Extract all" and save the new folder to somewhere you want it to be. Then you should be good to go!
Jake Woods (10 months ago)
Played on 0.5
whenofficial (10 months ago)
0.5 speed :)
VerveDev (10 months ago)
Brancy10 (10 months ago)
I think he got momentarily possessed at 13:15
VerveDev (10 months ago)
Brancy10 editing mistake lol
Visen Games (11 months ago)
when I try to use the command nothing happens
Darkness (11 months ago)
Subscribed,I'm the 90th subscriber ;)
WoodCollector (11 months ago)
[17:30:19 ERROR]: Could not load 'plugins\HelloWorld.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: me/woodcollector/helloworld/Main has been compiled by a mo re recent version of the Java Runtime (class file version 53.0), this version of the Java Runtime only recognizes class file versions up to 52.0 How do I fix this? Great Tutorial BTW I only got one problem (I think) and It's this one. Seems like my "Java Runtime" is a newer version than my servers? I'm just guessing I have no idea what this is.
Tra La (7 months ago)
I could help, add me on discord skrrt#4452
WoodCollector (11 months ago)
Oh, sorry I'm new to this, that's why I'm here
VerveDev (11 months ago)
No that is for your computer
WoodCollector (11 months ago)
For the server I'm guessing since it says so in the link.Thanks for the quick reply
VerveDev (11 months ago)
Download this http://www.oracle.com/technetwork/java/javase/downloads/server-jre8-downloads-2133154.html
Lokky Prime (11 months ago)
Hey dude dont get discouraged by other people theyre opinions dont matter if you like doing this Just keep doing it
Grae (11 months ago)
What theme is the color and fonts?
VerveDev (11 months ago)
Logu I have a video on it.
TO - esper2001 (11 months ago)
I understand how to script a plugin but when i put the jar file in my plugins folder and restart the server the folder of my plugin is not showing and i did every thing you said
VerveDev (11 months ago)
I would recommend to restart and follow the video a bit more carefully because 99.9% of the people who have followed the video do not experience any issues.
SuperHD (1 year ago)
i installed my plugin and not loaded
VerveDev (11 months ago)
I recommend watching the video again but this time a bit more carefully.
EpicMCGamingYT (1 year ago)
My Permission Name Is Red!! How do I Fix This??
EpicMCGamingYT (1 year ago)
NVM I have fixed this
ReDollar (1 year ago)
[16:54:51 ERROR]: Could not load 'plugins\Vaults.jar' in folder 'plugins' org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:154) ~[Server.jar:git-Spigot-db6de12-18fbb24] at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:133) [Server.jar:git-Spigot-db6de12-18fbb24] at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugins(CraftServer.java:292) [Server.jar:git-Spigot-db6de12-18fbb24] at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:198) [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_121] Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml ... 6 more please help :(
Zack (11 months ago)
VerveDev (11 months ago)
If you have named your packages or classes differently than I have in the video then you can't have the same plugin.yml as me.
Zack (1 year ago)
@Void Enterainment How do i fix it?
Void Entertainment I read the plugin.yml file and it was the same as your file...
VerveDev (1 year ago)
Louis Hancock have you even read the error? Invalid plugin.yml
GoEasyPlease Games (1 year ago)
Hey nice job but I was wondering if you had an recommendations on websites to learn java?
Pheen (8 months ago)
Luuk Laenen (9 months ago)
this is where i learn java: https://www.udemy.com/java-tutorial/learn/v4/overview
GoEasyPlease Games (1 year ago)
And please continue this series
GoEasyPlease Games (1 year ago)
And also i used codecademy but it didn't help at all... I learned stuff like booleans for loops array lists and other weird things you didn't even you use (besides boolean)
Java 1670 (1 year ago)
how did you get your eclipse to look like that?
VerveDev (6 months ago)
Actually you should be going to your preferences and under appearance change theme to dark xD
Java 1670 (1 year ago)
1 | Go to your navigation bar. 2 | Hover over the "help" text. 3 | Click "Eclipse Marketplace" 4 | Type "Theme" in the marketplace.
Colonial Mapper (1 year ago)
When I try to mke the package inside the other one it just takes it out
Arvyk (10 days ago)
+Travis Samuelson Thnx, a lot!
Włodzimierz Lenin (3 months ago)
Thanks, you saved me a lot of frustration.
Travis Samuelson (4 months ago)
Click the arrow on the package explorer named View Menu, then click package presentation, then click hierarchical
Nano Rasmus (5 months ago)
Ryan Mawhinney (1 year ago)
thanks now i understand how to make mine craft plugins!!!!!
Wesley Heijman (1 year ago)
Could not load 'plugins\HelloWorld.jar' in folder 'plugins' All my work for nuffin
VerveDev (1 year ago)
it can be anything but it is proper to have the structure i have listed. Also just because you have no red does not mean you have not done anything wrong
Wesley Heijman (1 year ago)
+Void Entertainment I did exactly the same. I had no red anywhere. But I have 2 questions - do I need some sort of account to create me.Name.Project or can it be anything? - When I add a file it opens Notepad++ and not Eclipse. I then decided to make the author version etc to put in there and hope it would work. Could that be the issue and how to fix it?
VerveDev (1 year ago)
Wesley Heijman then you have followed the video wrong
RealGraphics (1 year ago)
make more please this was very imformative
VerveDev (1 year ago)
realparkour thanks!
RealGraphics (1 year ago)
ok thank you sub from me
VerveDev (1 year ago)
realparkour new episode coming soon!
MysterySources (1 year ago)
Nice video! I understand your code but if you left me to create my own I'd have no chance.... xD
Void Entertainment Code academy wont help much, it gives you the awnsers.
VerveDev (1 year ago)
TakeThatL yes of course! Just make sure you choose Java not javascript
MysterySources (1 year ago)
ok will codecademy help along side this?
VerveDev (1 year ago)
TakeThatL haha, you just have to keep doing it and methods become second nature xD
You know...some servers are actually 1.11.2 but they have plugins that re-create 1.8 pvp ;)
VerveDev (1 year ago)
TEAM HIGHRISE there are other reasons to which i do not like it.
When i type "extends JavaPlugin {" it says on the left "JavaPlugin cannot be resolved as a type" What do i do?
VerveDev (1 year ago)
Have you added the spigot jar dependency to your build path?
nova (1 year ago)
Yo dude please continue.. and can make your own essentials plugin like adding commands like /pay /fly /tp/heal /feed etc
Charles (7 months ago)
Just use Essentials...
VerveDev (1 year ago)
JavaCoded will be doing something similar to that. Gotta do the basics first. Cant just show you how to do it to copy, you have to learn it haha
nova (1 year ago)
Also gamemodes too /gmc /gms
nova (1 year ago)
Do this for next episode start this something new pls

Would you like to comment?

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