HomeРазвлеченияRelated VideosMore From: The Dev Project

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

277 ratings | 15214 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 (129)
The Dev Project (2 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.
SwissyPlayZ (3 days ago)
how to u make that sign infront of Override?
When i try to type } else{ it says that i should delete the toke, please help!
iSmellBullshit (12 days 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 (15 days ago)
i can do /GiveRank or /afk command i wanna do /GiveRank [player name] [Rank] (youtuber , owner , admin , vip , mvp , etc)
Samuel Putai (16 days 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 (12 days ago)
more info needed. Usally it will say [Server] Error at myplugin.me.name.Main (a number) Java.somthin
Samuel Putai (16 days ago)
Is it because I called it tutorial.jar? xD honestly not sure why it doesn't work
Restudy (19 days 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 (9 days ago)
u havta extract it and inside the extracted file will be eclipse
The Bioticwolf (19 days 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 (15 days ago)
And how did you manage to do that? Cant drag it in nor does creating inside actually work
Cashton (1 month ago)
Wow it's not working >:(
The Dev Project (1 month ago)
Cashton then you did it wrong 😐
Reckless Nuke (1 month 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.
The Dev Project (1 month ago)
You may send me an email at [email protected]
daoek (1 month ago)
for people who the command does nothing replace " new HelloCommand(this); " with getCommand("hello").setExecutor(new HelloCommand(this)); this worked for me :p
The Dev Project (1 month 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 (1 month ago)
I get an error in eclipse, it looks like this *The method getCommand(String) is undefined for the type Main*
ZouS PantS (1 month 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 (2 months ago)
Need help at 7:43
Krag (2 months ago)
https://gyazo.com/55666060c6a84573a03c363174c44d11 Literally does not work
MrCake (2 months ago)
There is a reason why this video dident get 9,272 likes.
The Dev Project (2 months ago)
MrCake and whats the reason?
spidertyler 2005 (2 months ago)
Bigger font plz!!!!!!!!!!!!!!!
Ronaldgameking channal (2 months ago)
Error Unexpected: https://gyazo.com/9408eb4ad471febeedc5dd28a27efbfb
Ronaldgameking channal (2 months ago)
Errors! http://www.mediafire.com/view/0ykqcf0uo00de5u/Bad_thing_need_fix.png
Ronaldgameking channal (2 months ago)
fixed, had to replace - with =
Ronaldgameking channal (2 months ago)
The VAR doesn't work
DelltaDragon (2 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...
The Dev Project (2 months ago)
And read your console, it clears says invalid description. You need a “:” beside aliases. Aliases: [hi]
The Dev Project (2 months ago)
DelltaDragon read your plugin.yml
GeometryCraft Rox (3 months ago)
Can i use bukkit as well?
EhsaanPlays (3 months ago)
To add colors do § [Color Code]
The Dev Project (3 months ago)
EhsaanPlays not everyone knows how to make that symbol, and in the Minecraft community using & has become second nature.
Nake (3 months ago)
I'm confused :/ Help? https://gyazo.com/7e1888339faf1bcef97b615c1d597841
Nake (3 months ago)
Nevermind, fixed.
Drink Bleach (4 months ago)
I just spent hour on this thing
RIOT Tropical (4 months ago)
Void Entertainment, Since you know how to make Plugins and obviously you are good with server plugin stuff, I wanted to know if I can pay you Paypal to help me work on my server and creating certain plugins and basic stuff like working on Mines. I don't need you to build for me I need someone who knows how to get stuff done and might have a professional server them self. I don't know how to make Buy Craft ranks and shops etc... Someone please get back to me soon and help me I have skype. Thanks!
RIOT Tropical (4 months ago)
Ill send you a email right now.
The Dev Project (4 months ago)
RIOT Tropical you may shoot me an email at “[email protected]
NG Subliminals (4 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 (4 months ago)
"Minecraft Hositing" error in desc
JackThePug (4 months ago)
I did pretty much what you did but with my development company website
JackThePug (4 months ago)
edit: for the package
ItzDerock (4 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 (5 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 (5 months ago)
I also changed the "Player p - (Player) sender;" to "Player p = (Player) sender;"
JagGillarCS Dab (5 months ago)
I re-did EVERYTHING! But it still won't work... https://hastebin.com/pesaxunuvi.java
JagGillarCS Dab (5 months ago)
Ok, I don't have time rn but I will do it later, thanks!
The Dev Project (5 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 (5 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 (5 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.
The Dev Project (5 months ago)
Also your plugin.yml is incorrect. Add two spaces before aliases and description under hello:
The Dev Project (5 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 (5 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 (5 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
The Dev Project (5 months ago)
Put your code into a hastebin and link me.
LoganSonicWave (5 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 (5 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 (5 months ago)
Played on 0.5
whenofficial (5 months ago)
0.5 speed :)
The Dev Project (5 months ago)
Brancy10 (5 months ago)
I think he got momentarily possessed at 13:15
The Dev Project (5 months ago)
Brancy10 editing mistake lol
Visen Games (6 months ago)
when I try to use the command nothing happens
Darkness (6 months ago)
Subscribed,I'm the 90th subscriber ;)
WoodCollector (6 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 (2 months ago)
I could help, add me on discord skrrt#4452
WoodCollector (6 months ago)
Oh, sorry I'm new to this, that's why I'm here
The Dev Project (6 months ago)
No that is for your computer
WoodCollector (6 months ago)
For the server I'm guessing since it says so in the link.Thanks for the quick reply
The Dev Project (6 months ago)
Download this http://www.oracle.com/technetwork/java/javase/downloads/server-jre8-downloads-2133154.html
Lokky Prime (6 months ago)
Hey dude dont get discouraged by other people theyre opinions dont matter if you like doing this Just keep doing it
Logu (6 months ago)
What theme is the color and fonts?
The Dev Project (6 months ago)
Logu I have a video on it.
TO - esper2001 (6 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
The Dev Project (6 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 (7 months ago)
i installed my plugin and not loaded
The Dev Project (6 months ago)
I recommend watching the video again but this time a bit more carefully.
EpicMCGamingYT (7 months ago)
My Permission Name Is Red!! How do I Fix This??
EpicMCGamingYT (7 months ago)
NVM I have fixed this
ReDollar (8 months ago)
Louis Hancock (8 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 :(
XMTCutMyself (6 months ago)
The Dev Project (6 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.
XMTCutMyself (7 months ago)
@Void Enterainment How do i fix it?
Louis Hancock (8 months ago)
Void Entertainment I read the plugin.yml file and it was the same as your file...
The Dev Project (8 months ago)
Louis Hancock have you even read the error? Invalid plugin.yml
GoEasyPlease Games (8 months ago)
Hey nice job but I was wondering if you had an recommendations on websites to learn java?
Pheen (3 months ago)
Luuk Laenen (4 months ago)
this is where i learn java: https://www.udemy.com/java-tutorial/learn/v4/overview
GoEasyPlease Games (8 months ago)
And please continue this series
GoEasyPlease Games (8 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 (10 months ago)
how did you get your eclipse to look like that?
The Dev Project (1 month ago)
Actually you should be going to your preferences and under appearance change theme to dark xD
Java 1670 (10 months ago)
Laurence F. Photography (10 months 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 (10 months ago)
When I try to mke the package inside the other one it just takes it out
Nano Rasmus (4 days 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
The Dev Project (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?
The Dev Project (1 year ago)
Wesley Heijman then you have followed the video wrong
RealGraphics (1 year ago)
make more please this was very imformative
The Dev Project (1 year ago)
realparkour thanks!
RealGraphics (1 year ago)
ok thank you sub from me
The Dev Project (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 (10 months 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.
The Dev Project (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?
The Dev Project (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 ;)
The Dev Project (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?
The Dev Project (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
MrCake (2 months ago)
Just use Essentials...
The Dev Project (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.