#Inventory cancel event dont work
1 messages · Page 1 of 1 (latest)
make sure it has &r at the end
oh you are using option too in function
yes, I set it only here
weird
broadcast the name of event-inventory
I said broadcast event-inventory
oh okay, wait a second please
broadcast name of event-inventory
im pretty sure if you put an empty color into inventory name with no text for it to color it just gets discarded
i know you used to be able to do it
but some update changed it
then try removing &r
should use metadata to check if some inventory is open
Yes, now it is working, but ther is another bug
?
now when I close that inventory, I can't manipulate with my player inventory too
as said above
when you open home gui give person some tag
same code given in image 2?
and check for that tag when cancelling click events
you can remove the tag on inventory close

In open event
set metadata value "home" of player to true
In cancel event
if metadata value "home" of player is true
In close event
clear metadata value "home" of player
You want to wait 1 tick before deleting the tag
try if player has metadata value "home":
well that's same right?
I don't use metatags much
@olive tangle can help you better
Meh
nope, I tryed it
but I think it is some bug
it is without any error, but it dont work
I everytime used if name of event-inventory is "home": cancel event
but now it cancel event in my player inventory too
Someone know how to do it please?
why don’t you set a variable
Set the metadata tag to the home gui, open the metadata to the player. on inventory click, check if event-inventory is the metadata tag
if player has metadata tag "home":
that just checks if the metadata tag is set, not if the inventory is that
iirc, even if you delete the metadata tag, it just sets it to false and doesn't actually delete it until the server restarts
Thank you all