The essentials of a Bukkit plugin
Each Bukkit plugin requires two specific files. These files are plugin.yml
and the main class of the plugin. We will begin by creating the most basic versions of each of these files. All of your future projects will start with the creation of these two files.
The plugin.yml file
We are ready to start programming a Bukkit plugin. The first file that we will create is plugin.yml
. This is the file that the Spigot server will read to determine how to load a plugin. Right-click on Source Packages and click on New | Other..., as shown in the following screenshot:
In the window that appears, select Other under Categories. Then, select YAML File under File Types, as shown in the following screenshot, and click on Next:
Set the File Name as plugin
, let the name of the folder be src
, and click on Finish. Your project's tree structure should now look like in the following screenshot:
The plugin.yml
file was created in the default package. This is where it needs to...