Modules
View how to create modules for Spoof.
Creating Modules
To create a module, you'll need to implement the Module
interface, below we've listed an example on how this may look.
public class ExampleModule implements Module {
public String getName() {
return "Example";
}
@Override
public void load() {
Bukkit.getLogger().info("Hello from " + getId() + " module!");
}
}
Ensure you export the jar as <name>-<version>.jar
when putting into the modules sub-folder. In this example it would be example-v1.0.jar
. Naturally, you won't need to create a plugin.yml or anything of that form.
Last updated