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

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

373 ratings | 21744 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 (160)
VerveDev (4 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.
NICE, But I wanted to create a plugin that removes brackets :( can you remove it? WITHOUT essentials chat?
Islamic Naheed (1 month ago)
Give Link To Download This Plugin!
ANONYMOUSCRACKER (1 month ago)
ok
Adam P. (42 minutes ago)
has anybody made money off of doing this for a server??
Sharifee (22 hours ago)
Does this still work with 1.13?
HD_Official (3 days ago)
i need help, with this plugin.getCommand("hello").setExecutor(this); its says that the method getCommand(String) is undefined for the type Main
Simpleen (5 days ago)
For me the plugin does'nt even show up in /plugins.
Simpleen (5 days ago)
Nevermind i spent all day working it out.
Herobrine Sky (5 days ago)
Do coding have difficult ?
aryan bharti (11 days ago)
Sick bro
ItsMat (23 days ago)
how do you not have 100k subs as of today...
Caleb Britannia (24 days 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 (27 days ago)
Your voice is really nice to listen to :)
FoxMasterYT (29 days ago)
Where are you form?
Morgan Smith (1 month 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 (1 month ago)
How much do you usually want for a plugin?
VerveDev (1 month 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 (1 month 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.
oake festel (1 month 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?
ANONYMOUSCRACKER (1 month ago)
thx
Mr.AyaPapaya (1 month ago)
how to u make that sign infront of Override?
Tom Zo (1 month ago)
that means your virtual keyboard is set to UK. Set it back to US or do shift + "
Mr.AyaPapaya (1 month ago)
it didn't work the only thing that showed up was: ""
Mr.AyaPapaya (1 month ago)
thx
Travis Samuelson (1 month ago)
Shift, 2
When i try to type } else{ it says that i should delete the toke, please help!
OriginalPGR (2 months ago)
13:15 - When you're doing a tutorial and then you have a Vietnam Flashback
iSmellBullshit (2 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 (2 months ago)
i can do /GiveRank or /afk command i wanna do /GiveRank [player name] [Rank] (youtuber , owner , admin , vip , mvp , etc)
Samuel Putai (2 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 (2 months ago)
more info needed. Usally it will say [Server] Error at myplugin.me.name.Main (a number) Java.somthin
Samuel Putai (2 months ago)
Is it because I called it tutorial.jar? xD honestly not sure why it doesn't work
Restudy (2 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 (2 months ago)
u havta extract it and inside the extracted file will be eclipse
The Bioticwolf (2 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 (2 months ago)
And how did you manage to do that? Cant drag it in nor does creating inside actually work
Cashton (2 months ago)
Wow it's not working >:(
VerveDev (2 months ago)
Cashton then you did it wrong 😐
Reckless Nuke (3 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 (3 months ago)
You may send me an email at [email protected]
daoek (3 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 (3 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 (3 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 days ago)
Brionte Hill hey, i have the same problem and i was wondering if u found out how to fix it.
ZouS PantS (3 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 (4 months ago)
Need help at 7:43
Krag (4 months ago)
https://gyazo.com/55666060c6a84573a03c363174c44d11 Literally does not work
Kevin Divine (4 months ago)
There is a reason why this video dident get 9,272 likes.
VerveDev (4 months ago)
MrCake and whats the reason?
spidertyler 2005 (4 months ago)
Bigger font plz!!!!!!!!!!!!!!!
Ronaldgameking channal (4 months ago)
Error Unexpected: https://gyazo.com/9408eb4ad471febeedc5dd28a27efbfb
Ronaldgameking channal (4 months ago)
Errors! http://www.mediafire.com/view/0ykqcf0uo00de5u/Bad_thing_need_fix.png
Ronaldgameking channal (4 months ago)
fixed, had to replace - with =
Ronaldgameking channal (4 months ago)
The VAR doesn't work
DelltaDragon (4 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 (4 months ago)
And read your console, it clears says invalid description. You need a “:” beside aliases. Aliases: [hi]
VerveDev (4 months ago)
DelltaDragon read your plugin.yml
GeometryCraft Rox (5 months ago)
Can i use bukkit as well?
DevOfLua (1 month ago)
bukkit and spigot are the same
EhsaanPlays (5 months ago)
To add colors do § [Color Code]
VerveDev (5 months ago)
EhsaanPlays not everyone knows how to make that symbol, and in the Minecraft community using & has become second nature.
Nake (5 months ago)
I'm confused :/ Help? https://gyazo.com/7e1888339faf1bcef97b615c1d597841
Nake (5 months ago)
Nevermind, fixed.
Drink Bleach (6 months ago)
I just spent hour on this thing
NG Subliminals (6 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 (6 months ago)
"Minecraft Hositing" error in desc
JackThePug (6 months ago)
I did pretty much what you did but with my development company website
JackThePug (6 months ago)
edit: for the package
ItzDerock (6 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
JagGillarCS Dab (6 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 (6 months ago)
I also changed the "Player p - (Player) sender;" to "Player p = (Player) sender;"
JagGillarCS Dab (6 months ago)
I re-did EVERYTHING! But it still won't work... https://hastebin.com/pesaxunuvi.java
JagGillarCS Dab (6 months ago)
Ok, I don't have time rn but I will do it later, thanks!
VerveDev (6 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 (6 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 (7 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 (7 months ago)
Also your plugin.yml is incorrect. Add two spaces before aliases and description under hello:
VerveDev (7 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 (7 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 (7 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 (7 months ago)
Put your code into a hastebin and link me.
LoganSonicWave (7 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 (7 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 (7 months ago)
Played on 0.5
whenofficial (7 months ago)
0.5 speed :)
VerveDev (7 months ago)
What?
Brancy10 (7 months ago)
I think he got momentarily possessed at 13:15
VerveDev (7 months ago)
Brancy10 editing mistake lol
Visen Games (8 months ago)
when I try to use the command nothing happens
Darkness (8 months ago)
Subscribed,I'm the 90th subscriber ;)
WoodCollector (8 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 (4 months ago)
I could help, add me on discord skrrt#4452
WoodCollector (8 months ago)
Oh, sorry I'm new to this, that's why I'm here
VerveDev (8 months ago)
No that is for your computer
WoodCollector (8 months ago)
For the server I'm guessing since it says so in the link.Thanks for the quick reply
VerveDev (8 months ago)
Download this http://www.oracle.com/technetwork/java/javase/downloads/server-jre8-downloads-2133154.html
Lokky Prime (8 months ago)
Hey dude dont get discouraged by other people theyre opinions dont matter if you like doing this Just keep doing it
Logu (8 months ago)
What theme is the color and fonts?
VerveDev (8 months ago)
Logu I have a video on it.
TO - esper2001 (8 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 (8 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 (9 months ago)
i installed my plugin and not loaded
VerveDev (8 months ago)
I recommend watching the video again but this time a bit more carefully.
EpicMCGamingYT (9 months ago)
My Permission Name Is Red!! How do I Fix This??
EpicMCGamingYT (9 months ago)
NVM I have fixed this
ReDollar (10 months ago)
shit
DemonicShadowProductuons (10 months 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 (8 months ago)
ok
VerveDev (8 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 (9 months ago)
@Void Enterainment How do i fix it?
DemonicShadowProductuons (10 months ago)
Void Entertainment I read the plugin.yml file and it was the same as your file...
VerveDev (10 months ago)
Louis Hancock have you even read the error? Invalid plugin.yml
GoEasyPlease Games (10 months ago)
Hey nice job but I was wondering if you had an recommendations on websites to learn java?
Pheen (5 months ago)
https://www.youtube.com/playlist?list=PLFE2CE09D83EE3E28
Luuk Laenen (6 months ago)
this is where i learn java: https://www.udemy.com/java-tutorial/learn/v4/overview
GoEasyPlease Games (10 months ago)
And please continue this series
GoEasyPlease Games (10 months 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 (3 months ago)
Actually you should be going to your preferences and under appearance change theme to dark xD
Java 1670 (1 year ago)
Thanks!
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
Włodzimierz Lenin (23 days ago)
Thanks, you saved me a lot of frustration.
Travis Samuelson (1 month ago)
Click the arrow on the package explorer named View Menu, then click package presentation, then click hierarchical
Nano Rasmus (1 month ago)
same
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
ScrubLif (1 year ago)
Hello my eclipse wont show me the public boolean option? dosent say the onCommand option either it worked the first time not this one
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
Kevin Divine (4 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.