Blogs Tutorial

How to make a plugin. PART 1

  • 290 views 0 today
  • 1
  • 2
  • 2
wrix
Lvl 3Apprentice Network
3
1. Download Eclipse (http://www.eclipse.org/downloads/eclipse-packages/) <And java if you do not already got it>
2. Open Eclipse
3. Right click under the project explorer and hover new.
4. Press Project, Find Java. And then press new Java project
5. Right click the src in your project and hover new again and press Package. (A normal package name is me.yourname.projecctname)
6. Then crate a class the same way but instead of pressing package choose class. (Call it what ever you want) <In this example im calling it TestPlugin>
7. Right click your project folder and hover "Build path" and then open buld path.
Inside there press Libraries then Add Library. Then navigate to your spigot.jar file.
and press Apply and close
8.Go into 'TestPlugin' and type this
How to make a plugin. PART 1
Then hover 'JavaPlugin' and click the import optione.
9.Add this
How to make a plugin. PART 1
after this right click the project folder then hover new and press file. The file must be named plugin.yml!
Then type this inside of the plugin.yml
How to make a plugin. PART 1
Then just export it and add it to your server this is usless since it wont do anything yet in the next tutorial i will learn you how to add a command :)

More like this

  Have something to say?

KweekelTime
10/09/2017 2:11 pm
Level 31 : Artisan Architect
Is this for minecraft 1.12.2?
1
wrix
10/09/2017 3:32 pm
Level 3 : Apprentice Network
This should work for every version :)
1

Welcome