Documentation
Here it is a documentation of what BeginnerAPI can do, and from what version it is:
BeginnerAPI | Type | Void | Description |
v1.0 | void | killPlayer(Player) | Kills the selected player |
v1.0 | void | healPlayer(Player) | Heals the selected player |
v1.0 | void | feedPlayer(Player) | Feeds the selected player |
v1.0 | void | starvePlayer(Player) | Makes the selected player starve |
v1.0 | void | toggleGamemode(Player) | Toggles a player's gamemode(only creative and survivial toggle) |
v1.0 | void | addPotionEffect(player, PotionEffectType, timeInSeconds, level) | Adds the selected potion effect to the selected player for the selected time with a selected level |
v1.0 | void | enchantItem(ItemStack, Enchantment, level) | Enchants the selected item with the selected level |
v1.0 | void | giveItem(Player, ItemStack) | Gives the selected player the selected itemstack |
v1.0 | void | hidePlayer(Player) | Hides the selected player |
v1.0 | void | showPlayer(Player) | Shows the selected player |
v1.0 | void | changeItemName(ItemStack, name) | Changes the selected item's name |
v1.0 | void | changeItemDescription(ItemStack, description) | Changes the selected item's description |
v1.1 | void | spawnEntity(EntityType, Location, amought) | Spawns the selected amought of the selected entity at the selected location |
v1.1 | ItemStack | createItem(Material, amought, name, description) | Returns an ItemStack with the selected name and description |
Events
Here are the list of events in BeginnerAPI:
- PlayerGetKilledByPlayerEvent *
- PlayerGetKilledByPlayerEvent is an event that listens to when a player gets killed by an other player. You can get the player with event.getEntity(), get the killer with event.getKiller(), get the handlerlists with getHandlers() and getHandlerList() and get the drops with event.getDrops().
Comments