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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.