API

BoomAPI

YOU NEED THE LATEST VERSION OF BETTERBOOM (1.4) TO USE THIS!

(Currently being approved by BukkitDev)


  • First of all, add the BetterBoom.jar into your libraries just like you did with the Bukkit API.
  • Next, add the line: depend: [BetterBoom] into your plugin.yml
  • Now go into your code and at the top put:

BoomAPI api = new BoomAPI();

  • Note: Make sure you import net.komputerking.betterboom.BoomAPI
  • Now when you want to create an explosion you can do:

api.createBoom(Location, ExplosionTime.NORMAL);

  • This will create a normal explosion that has the same fuse as TNT
  • If you want a instant explosion, replace ExplosionTime.NORMAL with ExplosionTime.INSTANT

This is a first draft of the API, so there isn't much, but enjoy none-the-less :)


Comments

Posts Quoted:
Reply
Clear All Quotes