-
-
Notifications
You must be signed in to change notification settings - Fork 377
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
Inventory Name doesn't work (2.4) #2069
Comments
The way inventory names are retrieved was changed in 1.14, as stated here you need to call |
Inventories don't have names in 1.14. Their views do, but there is no reliable way to get a view from an inventory. We might be able to silently patch all inventories in Skript to actually be inventory views under the hood, but that is a bit risky. |
We should likely update that |
Under an "inventory event" situation, I just see it as being important to have some way of getting the name (especially in click events), since the majority of people using Skript GUIs seem to use the name in the Edit: While working on something today I noticed that the containers themselves seem to hold a title/name. Perhaps something with |
@Moderocky in the inventory event, we can add an |
Oh yes you are right. I would offer to try and do it myself, but it sounds like you have a better idea. |
Description
The
name of player's current inventory
returns<none>
in the current skript version, in an inventory-click event.I believe that getting the inventory type is also not working.
Bug reproduced by Runakai also.
Steps to Reproduce
Expected Behavior
It should return the name.
Errors / Screenshots
Server Information
Additional Context
You can fix this in Skript-Mirror using the following:
In this, {_n} returns the uncoloured name, and {_t} returns the type as a text.
The text was updated successfully, but these errors were encountered: