Spells

The spell class has three main methods that have to be present for every spell.

In this example we will go over how to create basic spell - one that doesn’t use any other methods to perform what it needs to do.

The Create Armor spell, which was originally developed by silgaminglol.

The Create Armor spell, which was originally developed by silgaminglol.

The Class

The first thing to do is to create the class for the spell.

The class name is only used to find it in the plugin.

The class should also extend the default Spell class, which allows us to use the Spell methods described below.

public class CreateArmor extends Spell {

}

The Constructor

The constructor is the thing that specifies what the spell actually is.