EasyPlugin
Make a plugin in minutes!
EasyPlugin just does as its name implies, creates plugins with ease! With EasyPlugin, you don't have to worry about creating configuration files, as well as avoiding low-level Bukkit features.
Learn to use EasyPlugin
With EasyPlugin, plugin development is as simple as extending a class. The compiler (and probably your IDE) will enforce you meet requirements for creating a plugin. Every part of EasyPlugin is easy to understand.
Example plugin:
<<code>>
package com.tnappo.exampleplugin;
import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.block.BlockBreakEvent;
import easyplugin.Plugin; import easyplugin.configuration.Requirement;
public class ExamplePlugin extends Plugin implements Listener {
public ExamplePlugin() { super("ExamplePlugin"); }
@Override protected void addConfigurationRequirements() { getConfiguration().addRequirement( Requirement.getRequirement("disabled", new String[] { "Set to 'true' to disable the plugin." }, "false")); }
@Override protected void registerListeners() { registerListener(this); }
@EventHandler public void onBlockBreak(BlockBreakEvent event) { if (!getConfiguration().getBoolean("disabled")) { event.getPlayer().sendMessage("You broke a block!"); } }
}<</code>>
In the case where you want low-level "root" access to all of Bukkit's features, extend "RootAccessPlugin" (easyplugin.RootAccessPlugin).