WookieeItemNames

WookieeItemNames

A library for item names and enchants. Editable config for locale or customname.

Allows you to get the names for items and enchants that you see in the client rather than the bukkit internal names. Such as Aqua Affinity instead of WATER_WORKER, or Wooden Shovel instead of WOOD_SPADE.

These names are stored in the config.yml so you can change them to match your locale or fit with renamed items on your server.

Usage

getEnchantName(String enchantment)
Returns a string from the config file that matches the enchantment string gotten by Enchantment.getName()
getEnchantName(Enchantment enchantment)
Returns a string from the config file that matches the Enchantment object
getItemName(String itemname, int datavalue, boolean plural)
Returns a string from the config file that matches the itemname string. Returns the plural name if the boolean plural is true.
getItemName(int itemid, int datavalue, boolean plural)
Returns a string from the config file that matches the itemid int. Returns the plural name if the boolean plural is true.
getItemName(Material material, int datavalue, boolean plural)
Returns a string from the config file that matches the Material object. Returns the plural name if the boolean plural is true.

Commands

None. No commands planned to be added.

Permissions

None. No permissions planned to be added.

API javadoc

http://chieloos.co.uk/wookieeitemnames/0.3/javadoc/

Source

https://github.com/chieloos/WookieeItemNames

Features to come

  • Abreviated item and enchant names.

Changelog

0.3

  • Changed getItemName to accept a boolean plural to get the plural name of an item

0.2

  • Added getEnchantName from Enchantment object.
  • Added getItemName from Material object.

Comments

  • To post a comment, please or register a new account.
Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories

Members

Recent Files