API

The plugin have an API too, if you want to hook into your own plugin.
You just need to import org.MachinaBanItem.ThePrometeus.Main.

 

Usage

  • Main.canUseItem(ItemStack, World) - Check if item ItemStack can be used in World.
  • Main.canUseItem(ItemStack, null) - Check if item ItemStack is blocked in any world.