CoreProtect

CoreProtect

1M Downloads

Add API method to log Container#getInventory()#addItem(...)

mfnalex opened this issue ยท 1 comments

commented

Hello, would it be possible to add a method so that I can log what items my plugin/the player has added into a chest etc.?

Something like this:

logContainerTransaction(String user, Location loc, ItemStack item, boolean addedOrTaken)

Currently it's only possible to log whether a player has transferred something into/out of the chest, but not what exactly, or to log a placement in the world.

commented

Sorry, I was too stupid to properly read the docs.
Using the logContainerTransaction method works fine when called at the right moment.