Magic Wands API

2.6k Downloads

Simple really, we kill the old wands.

This plugin i would like to replace all of the wands plugins are currently using.

Config

<none>

Permissions

<none>

how to make a wand

  1. make a wand class and make it implement Wand (look below for example)
  2. register the wand - WandManager.add(Wand Class);
  3. make sure you have depend: Wands in you config

Examples

Wand Class
public class ProtectionWand implements Wand {
	public HashMap<String,Location[]> selections = new HashMap<String,Location[]>();
	@Override
	public void onRightClick(ItemStack itemStack, Player player,
			Block bockedClick, BlockFace face) {
	}

	@Override
	public void onLeftClick(ItemStack itemStack, Player player,
			Block bockedClick, BlockFace face) {

	}
	@Override
	public boolean canCreate(ItemStack itemStack, Player player) {
            return true;
	}

	@Override
	public String getName() {
		return ChatColor.GOLD+"Protection Wand";
	}

}

Pictures :D

Example Example