Rocologo / BagOfGold

Economy plugin for Minecraft Servers
13 stars 6 forks source link

onInventoryMoveItemEvent spamming console #114

Closed noxPHX closed 2 years ago

noxPHX commented 3 years ago

Hello,

Recently the players on my server started experiencing some issues with their bag of gold : they often can not deposit to the bank and if they have a bag of gold in their inventory it always disappear when they logout and log back to the server.

I see no errors on the console but when I enable debug mode a message is spamming the console at the moment they log back and their bag of gold is gone :

` ...

[17:07:58] [Server thread/INFO]: ^[[0;33;22m[BagOfGoldCore]^[[m [Debug] CoreRewardListeners: onInventoryMoveItemEvent called^[[m

[17:07:58] [Server thread/INFO]: ^[[0;33;22m[BagOfGoldCore]^[[m [Debug] CoreRewardListeners: onInventoryMoveItemEvent called^[[m

[17:07:58] [Server thread/INFO]: ^[[0;33;22m[BagOfGoldCore]^[[m [Debug] CoreRewardListeners: onInventoryMoveItemEvent called^[[m

[17:07:58] [Server thread/INFO]: ^[[0;33;22m[BagOfGoldCore]^[[m [Debug] CoreRewardListeners: onInventoryMoveItemEvent called^[[m

... `

I looked into the code and the only reference I see to this debug message is commented so I don't know where it may come from and how it could be triggered...

I recently updated the server to 1.15.2 (spigot), I don't know if it's somehow related.

Tell me if you need any more information

Thank you for this great plugin !

Rocologo commented 2 years ago

This is fixed in newest release.

Rocologo commented 2 years ago

It was a bug and it happened when someone added a BagOfGold to a Hopper. Hoppers now move the Bags the same way as all other items.