Double0negative / Survival-Games

Survival Games plugin for Bukkit
62 stars 133 forks source link

Show icon kits #73

Open elpedriyo opened 11 years ago

elpedriyo commented 11 years ago

kit-select-mode: 'SHOW_ICON'

It does not work, It continues showing all

hitech95 commented 11 years ago

Kits are WIP.

elpedriyo commented 11 years ago

What do you mean?

hitech95 commented 11 years ago

The kits are not enabled by default because not all features have been introduced.

An example is the choice of display that has not yet been implemented.

This is the my point of view. It's probably just an oversight...

elpedriyo commented 11 years ago

Do you know if showing only the icon will be implemented and when? Another question, where can I find the name of the enchantments. What I mean Is that I have tried this: - '276,1, 0, fireprotect:2, fireprotect' And It does not work

hitech95 commented 11 years ago

I'm sorry I Don't know. Some enchantments aren't in the code so aren't supported.

elpedriyo commented 11 years ago

Could you please tell me which enchantments are supported or how to program them in the plugin code, I need more than 2 enchatments, also it could be great if you notify this to the developer, and if you could tell when the new enchantments could be integrated

elpedriyo commented 11 years ago

This is a very good plugin but you need to fix te enchantments problems

hitech95 commented 11 years ago

I have read the code. Enchantments are implemented but use other names.

You can find it hire (filed summary section). The enchat name is the lowercase of names and remove the "_" http://jd.bukkit.org/rb/apidocs/org/bukkit/enchantments/Enchantment.html

An example is: silktouch -> SILK_TOUCH -> silktouch (lowercase and without underscore)

elpedriyo commented 11 years ago

I am using this code:

Pocketkid2 commented 11 years ago

change the protectionfire to fireprotection The enchantment name reader does (unfortunately) not support very many enchantment names.

elpedriyo commented 11 years ago

The same problem, it continues without working

hitech95 commented 11 years ago

Sorry, I misinterpreted the code. Unfortunately I had not read in detail the bukkit API and I have noticed one thing.

unfortunately the management of the names of enchantments (for now is more complex)

This is the correct list of the names:

enchantment [34 pickets]
enchantment [0, protectionenvironmental]
enchantment [35, lootbonusblocks]
enchantment [1 protectionfire]
enchantment [32, digspeed]
enchantment [2, protectionfall]
enchantment [33, silktouch]
enchantment [3, protectionexplosions]
enchantment [4 protectionprojectile]
enchantment [5, oxygen]
enchantment [6 waterworker]
enchantment [7, thorns]
enchantment [51, arrowinfinite]
enchantment [17, damageundead]
enchantment [50, arrowfire]
enchantment [16, damageall]
enchantment [49, arrowknockback]
enchantment [19, knockback]
enchantment [48, arrowdamage]
enchantment [18, damagearthropods]
enchantment [21, lootbonusmobs]
enchantment [20, fireaspect]

Such names are composed of:

enchantment [<Enchantment_ID>, <Name without "_" or spaces>]