API (v1.1.0-v1.2.2)

VERSION 2.0.0 CHANGED THE WHOLE API SYSTEM, THIS PAGE IS OUTDATED AND WILL GET UPDATED SOON!

To use the API, simply add SimpleBazooka v1.2.2.jar to your external jars. Then you simply have to type 'SimpleBazooka.' to get a list of the methods explained below.

getAmmo(int Q) - Returns the Ammo ItemStack with Q as quantity.

getAmmo() - Returns the Ammo ItemStack.

getBazooka() - Returns the Bazooka ItemStack.

giveAmmoSafe(Player P, int Q) - Gives the player ammo in amount of Q, if he has permission.

giveBazookaSafe(Player P) - Gives the player the Bazooka if he has permission.

giveAmmo(Player P, int Q) - Gives the player ammo in amount of Q, without checking for permission.

giveBazooka(Player P) - Gives the player the Bazooka without checking for permission.

takeAllAmmo(Player P) - Takes a player all ammo, if he has some.

takeAmmo(Player P, int Q) - Takes the player ammo exactly in amount of Q, if he has it.

takeBazooka(Player P) - Takes the player the Bazooka if he has it.

hasAmmo(Player P) - Returns true if the player has any amount of ammo.

hasBazooka(Player P) - Returns true if the players has a Bazooka.

hasAmmoPermission(Player P) - Returns true if the player has the permission 'simplebazooka.ammo.'

hasBazookaPermission(Player P) - Returns true if the player has the permission 'simplebazooka.bazooka'.


Comments

Posts Quoted:
Reply
Clear All Quotes