MMOItems - API
Here are all the API classes you can use to manualy manipulate some parts of MMOItems.
getItem(Type, String) returns the corresponding custom item depending on the item type and ID.
Code (Text):player.getInventory().addItem(ItemManager.getItem(Type.SWORD, "STEEL_SWORD"));
player.getWorld().dropItem(player.getLocation(), ItemManager.getItem(Type.SWORD, "STEEL_SWORD"));
castAbility(Player, Ability, ItemStack, ValueCouple...) makes a player cast an ability. The ItemStack represents the item the player is clicking when casting the ability. The ValueCouple... are the ability modifiers.
Code (Text):PlayerAbilities.castAbility(player, Ability.FIREBALL, player.getInventory().getItemInMainHand(), new ValueCouple("damage", 5.6), new ValueCouple("cooldown", 10.3));
player.sendMessage(ChatColor.YELLOW + "You successfuly casted " + ChatColor.GOLD + "Fireball" + ChatColor.YELLOW + "!");