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:

The plugin.yml file

In the window that appears, select Other under Categories ...

Get Building Minecraft Server Modifications - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.