HomeJavaModsSuperPvPKit API
ModsJava

SuperPvPKit API

Easy to use API for creating kit plugins. Free Minecraft Java mod for 1.8, 1.9, 1.10.

⬇ Download on Spigot
[​IMG]



Super PvP Kit API is for plugin developers to easily make, modify, and give kits to players.
REMINDER: This is NOT a kit plugin, it is a library for plugins to use.



Spoiler: Example Kit
Code (Text):

            Player player = (Player) sender;
            Kit kit = new Kit("Example Kit");

            ItemStack diamondSword = new ItemStack(Material.DIAMOND_SWORD);
            ItemMeta diamondSwordMeta = diamondSword.getItemMeta();

            diamondSwordMeta.setDisplayName(ChatColor.DARK_AQUA
                    + "The King's Sword");
            diamondSword.setItemMeta(diamondSwordMeta);
           
            diamondSword.addEnchantment(Enchantment.DAMAGE_ALL, 5);
            diamondSword.addUnsafeEnchantment(Enchantment.KNOCKBACK, 10);
            kit.add(diamondSword);

            kit.add(new ItemStack(Material.DIAMOND_PICKAXE));
            kit.addEnchantment(1, Enchantment.DIG_SPEED, 2);
            kit.setDisplayName(1, ChatColor.DARK_AQUA + "KitAPI Pickaxe");
            kit.setLore(1, new String[] { "Thanks for using KitAPI",
                    "Author: kingcarl123",
                    "Organization: Blawk Developers Team" });
            kit.give(player);

            player.sendMessage(ChatColor.RED + "Example Methods Executed:");
            player.sendMessage(ChatColor.GREEN + "toString() : "
                    + kit.toString());
            player.sendMessage(ChatColor.GREEN + "contains() : "
                    + kit.contains(diamondSword));
            player.sendMessage(ChatColor.GREEN + "size() : " + kit.size());
            kit.sendContentsMessage(player);
 

Here is a guide on making a kit.
There is no hook needed!


Spoiler: API tutorial
// Let's create a Kit called the Emerald Kit.
Kit emeraldKit = new Kit("Emerald Kit");

/* Now, we'll we have an option of modifying the kit in two ways:
* 1. Create a new ItemStack and add it to the Kit
* 2. Create an ItemStack inside the kit and modify it there.
*/

// Here's example 1.
// We'll make the item.
ItemStack emeraldItem = new ItemStack(Material.EMERALD);
ItemMeta emeraldMeta = emeraldItem.getItemMeta();

// Set the display name.
emeraldMeta.setDisplayName(ChatColor.GREEN + "Super Emerald");

// Let's add a lore too.
List<String> lore = new ArrayList<String>();
lore.add("Villager Currency... Why do they even like Emeralds?");
emeraldMeta.setLore(lore);
emeraldMeta.setLore(lore);
emeraldItem.setItemMeta(emeraldMeta);

// Now we add it to the Kit.
emeraldKit.add(emeraldItem);

// Here's example 2.
// We add the item to the Emerald Kit.
kit.add(new ItemStack(Material.EMERALD_BLOCK));

// Let's add a name and lore.
kit.setDisplayName(1, ChatColor.DARK_AQUA + "Super Emerald Blocks");
kit.setLore(1, new String[] { "Emeralds rule!", "Here's a huge block of Emeralds!"});

// When you're done, you can give the entire kit to a player like this.
kit.give(player);

Spoiler: donate
I provide this resource for free, help me keep it free :)

http://paypal.me/gordo654

Donators:

None yet!

By downloading SuperKitPvP-API you agree to the following terms:

If you have any issues you will comment your problem in the discussion thread or via pm before leaving a negative review saying "the API does not work"

Commands

Plugin details

Read from the plugin's own plugin.yml.

SuperPvPKit API is a free Minecraft Java mod. Compatible with Minecraft 1.8, 1.9, 1.10. Downloaded 223 times (via Spigot). Download it and open it directly in the game.

Explore more