Blessings
Junior
- 8 June 2016
- 37
- 0
Reputation:
1. Add extends JavaPlugin and import JavaPlugin.
2. Replace "Hello World!" with HelloWorld
3. Replace "p.getCustomName()" with "p.getName()"

2. Replace "Hello World!" with HelloWorld

3. Replace "p.getCustomName()" with "p.getName()"

Getting Started:
1. Head over to HEREHERE and hit download. This file is an extension to use Minecraft codes.
Time to Code:
1. Go to File > New > Java Project
[img=450x450]
2. For this tutorial, Name the project HelloWorld and select Next

3. Select Libraries > Add External JARs.

4. Find your file, Double click it to openFinish

5. Right click "src" > New > Package

6. Change the Name: yourname.helloworld (You can replace yourname with whatever)

7. Right click on helloworld > New > Class

8. Change the Name to "Hello" and hit Finish

9. This is the code for the HelloWorld Plugin. Read the grey to understand. The lines represent the imports it leads to.

10. Right Click on HelloWorld > New > File

11. Name the File "plugin.yml" and then hit Finish

12. Double click plugin.yml

13. Right click on the HelloWorld > Export

14. Select Java > JAR File > Next

15. Check the same boxes and then hit Next

16. Wherever you place your JAR file, move it into your Minecraft > Plugins folder and then start up your server!
17. If you copied correctly, you should see this in this console!

18. Once in-game, type /help to see that your plugin is there and /help helloworld

19. Now you are ready! Type in /hello and see your plugin in action!

Hello World Finished!:
That comes to the end of this tutorial! If you have any plugin tutorials then please let me know below!]
- I am currently working on Chat Channels.