-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Full Item names in notifications #71
Comments
Well the info which item that is can be queried with /iteminfo so at least there is a workaround for now. The main issue here is that there is no easy way to get an actually useful name server-side as that's done by client translations. The messaging of the plugin would need to be completely moved to components and I'm unsure if Spigot even has API to get the necessary information from items to use these translation keys. (But I guess hooking into my ShowItem plugin similarly to how ChestShop does it could do it, but ChestShop by itself also only displays the same information as CSN on purchases right now anyways) |
/iteminfo EnchantedBook#X does indeed say Swift Sneak III, can the csn just do that to display the full name instead |
That is not the "full name", the command shows additional information about the item like all enchantments or potion effects, not the actual name of the item hence why CSN can't use that. |
Ah i see, what about making a ref table containing the names and call against that, if there is an enrty for it then use the entry, if no then use the current method, that way just some can be added, like the enchanted books. |
I am VERY new to this but have forked this and will attempt to add a names.yml |
It's not so easy, there is nothing to really map names against. The best you could do is take the enchantment and add it to the item name. But what about items with multiple enchants? Or potion effects? Or both? How would their name look like? The best approach there would be to just use the same name Minecraft itself uses but again, that is done client-side so one would need to send the client the proper translatable component. |
I am just on about picking up on the name that is returned at the point of printing the string when running the history command,
I have had a play and compiled a test version but for some reason I can't fire up the test server, I added vault but I get this error... [21:37:56 INFO]: [ChestShop] Enabling ChestShop v3.12.3-SNAPSHOT (build 423) |
Well the item metadata IDs are unique on each server, I doubt anyone would go through the trouble of specifying them manually. (Also that could already be done using ChestShop's alias system)
You need an economy plugin too. |
I added vault though |
And Vault is not an Economy plugin, it only provides an API for other plugins to provide an Economy plugin or hook into one. |
Sorry still learning all this, I assume looking at my plugins list that essentialsX is doing this for me then |
EnchantedBook#X |
It's the base 62 encoded id from the item in the items.db. That depends on the order the items were used in a shop. |
I was so proud it worked first time too ! |
Any chance we can please have the full name of the item(s) sold in the notification
I understand why we can't have the full name in the sign (as I asked before)
player1 bought 1 Enchanted Book#r
I still have to go checking through all the enchanted book shops to establish which shop :(
The text was updated successfully, but these errors were encountered: