#Spigot API changes

1 messages · Page 1 of 1 (latest)

crisp crescent
#

React: 1️⃣ For calling if behavior changed or 2️⃣ If you wanna call everytime the itemstack is changed

frank reef
#

The more data we can pull out from an event, the more useful it is

crisp crescent
#

First to reach 5 reactions will get used

crisp crescent
trim belfry
#

dont call 2 separate events

#

fix the current one to do its job nothing more

crisp crescent
#

They aint 2 seperate events

trim belfry
#

you want to call the event again

#

retriggering it

crisp crescent
#

With the new itemstack

trim belfry
#

wich will most likely break plugins listening to the dispenser rather than the item

crisp crescent
#

currently there is no way around not calling it again if the new itemstack's dispense behavior is different

crisp crescent
trim belfry
#

your ticket is specific,fix whats in it,rn the problem is the player equips the original item even if a new one is set

crisp crescent
trim belfry
#

dont combine tickets

#

,,,

crisp crescent
#

They are the same system

trim belfry
#

make a new one for it if its still a problem

#

with a unrelated ticket

crisp crescent
#

its not unrelated

trim belfry
#

the ticket you are fixing says item is not properly set

#

dont also fix something from another one

crisp crescent
#

I was fixing 6023 i encountered 6745

trim belfry
#

as the changelog needs to remain relevant

#

if you will fix both problems do a ticket for each

crisp crescent
#

You mean PR for each?

#

They already have seperate tickets

trim belfry
#

yes separate them

crisp crescent
#

:painexe:

trim belfry
#

its likely to not get rejected by md...

#

that way

crisp crescent
#

Fine that sucks tho

#

That still causes the event to trigger again if the dispensebehavior is different

#

Another question: Currently when you change the itemstack in the event the original itemstack stays inside of the dispenser and does not get subtracted.

#

Do you guys think this behavior should stay or should the original itemstack get subtracted by 1