O'Reilly logo

Building Minecraft Server Modifications - Second Edition by Cody M. Sommer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required