How can I detect when player receive the item in sponge 8.0 ?
e.g.
@Listener
public void onPlayerGetItem( PlayerReceiveItemEvent e){
e.player();
e.items();
e.setCancelled(true)
}
How can I detect when player receive the item in sponge 8.0 ?
e.g.
@Listener
public void onPlayerGetItem( PlayerReceiveItemEvent e){
e.player();
e.items();
e.setCancelled(true)
}
It can’t detect when player receive Item From Chest, Furance, and Container.
Ah i see what you mean. Its a bit difficult as some players wont do that in a single tick, instead they put the item in the cursor, move it and then drop it.
You could listen to
And hope the cause system helps as well as casting of the event. Or you can listen to the event i suggested before and this
Which will limit the events to both single tick transfers