Key question
randombyte-developer opened this issue ยท 4 comments
Hi!
I have just seen the release of the Sponge counterpart at Ore. Without having the plugin tested but by reading the code, I suspect that the key items are identified by their name. Is that correct? If that is the case, a player could renamed any item with the correct item type to the key name to unlock a door/etc. Or am I wrong?
Yes I thought about that, but the problem is that the plugin should be Bukkit compatible; and (sadly) Bukkit doesn't provide this kind of API.
Key items are identified by their names yes (but also by their type); it is not possible to identify them by any other mean. But, to unlock a padlock, the key must have a specific lore which is not possible to add in-game.
Did I have answered your question ?
It might be worth to look into the DataAPI or use NBT data directly.