Earlier Versions
Name | Size | Uploaded | Game Version | Downloads | |
WookieeItemNames v0.3 beta | 52.62 KB | Mar 29, 2013 | 1.5.1 | 327 | Download |
WookieeItemNames v0.2 beta | 39.11 KB | Mar 28, 2013 | 1.5.1 | 171 | Download |
WookieeItemNames v0.1 beta | 36.97 KB | Mar 26, 2013 | 1.5.1 | 157 | Download |
Description
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.
Add a comment