RpgItemAPI

This project is abandoned and its default file will likely not work with the most recent version of Minecraft. Whether this project is out of date or its author has marked it as abandoned, this project is no longer maintained.

RpgItemAPI

This plugin does nothing on its own, you need to include it in your coding project!

Makes the creation of new RPG-themed items easier, using 1 simple line of code.

To use it, follow these simple steps:

  • right click your project, go to "properties"
  • select Java Build Path
  • click "Add External Jar" and select the RpgItemAPI file
  • see the example below

Example:

RpgItemAPI api = new RpgItemAPI(); //Register the api
ArrayList<String> lore = new ArrayList<String>(); //Create an ArrayList for the lore
lore.add("Miau!"); //Add something to the lore. (Every new .add is a new lore-line)
api.createItem(e.getPlayer(), 
             "Kitten's Longsword", 
             Material.IRON_SWORD,
             ChatColor.RED, 
             lore,       
             Enchantment.KNOCKBACK, 9);

This simple code will give the player logging in an item with an ironsword with the red name "Kitten's Longsword", enchanted with Knockback IX and the lore "Miau!"


Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    91759
  • Created
    May 8, 2015
  • Last Released File
    May 9, 2015
  • Total Downloads
    1,780
  • License

Categories

Members

Recent Files

Bukkit