{"action":"created","issue":{"url":"https://api.github.com/repos/Rocologo/BagOfGold/issues/35","repository_url":"https://api.github.com/repos/Rocologo/BagOfGold","labels_url":"https://api.github.com/repos/Rocologo/BagOfGold/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/Rocologo/BagOfGold/issues/35/comments","events_url":"https://api.github.com/repos/Rocologo/BagOfGold/issues/35/events","html_url":"https://github.com/Rocologo/BagOfGold/issues/35","id":357190849,"node_id":"MDU6SXNzdWUzNTcxOTA4NDk=","number":35,"title":"Bag of gold items have no value in certain situations","user":{"login":"braceyourself07","id":4984394,"node_id":"MDQ6VXNlcjQ5ODQzOTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/4984394?v=4","gravatar_id":"","url":"https://api.github.com/users/braceyourself07","html_url":"https://github.com/braceyourself07","followers_url":"https://api.github.com/users/braceyourself07/followers","following_url":"https://api.github.com/users/braceyourself07/following{/other_user}","gists_url":"https://api.github.com/users/braceyourself07/gists{/gist_id}","starred_url":"https://api.github.com/users/braceyourself07/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/braceyourself07/subscriptions","organizations_url":"https://api.github.com/users/braceyourself07/orgs","repos_url":"https://api.github.com/users/braceyourself07/repos","events_url":"https://api.github.com/users/braceyourself07/events{/privacy}","received_events_url":"https://api.github.com/users/braceyourself07/received_events","type":"User","site_admin":false},"labels":[{"id":737914986,"node_id":"MDU6TGFiZWw3Mzc5MTQ5ODY=","url":"https://api.github.com/repos/Rocologo/BagOfGold/labels/More%20information%20needed","name":"More information needed","color":"33aa3f","default":false}],"state":"open","locked":false,"assignee":{"login":"Rocologo","id":1008133,"node_id":"MDQ6VXNlcjEwMDgxMzM=","avatar_url":"https://avatars0.githubusercontent.com/u/1008133?v=4","gravatar_id":"","url":"https://api.github.com/users/Rocologo","html_url":"https://github.com/Rocologo","followers_url":"https://api.github.com/users/Rocologo/followers","following_url":"https://api.github.com/users/Rocologo/following{/other_user}","gists_url":"https://api.github.com/users/Rocologo/gists{/gist_id}","starred_url":"https://api.github.com/users/Rocologo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rocologo/subscriptions","organizations_url":"https://api.github.com/users/Rocologo/orgs","repos_url":"https://api.github.com/users/Rocologo/repos","events_url":"https://api.github.com/users/Rocologo/events{/privacy}","received_events_url":"https://api.github.com/users/Rocologo/received_events","type":"User","site_admin":false},"assignees":[{"login":"Rocologo","id":1008133,"node_id":"MDQ6VXNlcjEwMDgxMzM=","avatar_url":"https://avatars0.githubusercontent.com/u/1008133?v=4","gravatar_id":"","url":"https://api.github.com/users/Rocologo","html_url":"https://github.com/Rocologo","followers_url":"https://api.github.com/users/Rocologo/followers","following_url":"https://api.github.com/users/Rocologo/following{/other_user}","gists_url":"https://api.github.com/users/Rocologo/gists{/gist_id}","starred_url":"https://api.github.com/users/Rocologo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rocologo/subscriptions","organizations_url":"https://api.github.com/users/Rocologo/orgs","repos_url":"https://api.github.com/users/Rocologo/repos","events_url":"https://api.github.com/users/Rocologo/events{/privacy}","received_events_url":"https://api.github.com/users/Rocologo/received_events","type":"User","site_admin":false}],"milestone":null,"comments":18,"created_at":"2018-09-05T11:45:20Z","updated_at":"2018-09-18T12:09:06Z","closed_at":null,"author_association":"NONE","body":"This is going to be a more ambiguous post that I will try to add to as I get more information.  So far the evidence I have is only circumstantial and I trust the players bringing this to my attention are not trying to complain in order to get free money (as this also happened to one of my admins).\r\n\r\nBasically the situation is a player will give money to another player by dropping gold or placing gold on the ground and the other player will pick it up or break the gold item.  The receiving player will see the gold in their inventory, but when they go to deposit it, there is no change to their balance (e.g. the bag may have said '1000' but it had an effective value of zero.  On other occasions, the gold just disappears from the player's inventory.\r\n\r\nOne player lost 12k gold. He took the gold out of a chest, dropped it out of his inventory onto the floor in front of him, then picked it up and it said \"You found 12,000\" and then it wasn't in his inventory or the chest.\r\n\r\nAnother player had 3.5k gold in their inventory and they did not die, spend, or drop the gold but that it just vanished about an hour later.\r\n\r\nThe situation that happened to my admin was that she was playing survival and traded an item with a player.  The player gave her gold in exchange by dropping it from their inventory and she picked it up. When she went to the bank, she checked her balance, deposited, then checked the balance again and the balance did not change.\r\n\r\nEach time we've tried to re-create these scenarios, the gold tracked perfectly fine.  So I don't know how to reproduce this. My theory would be that somehow some gold is not being written into the database or it's not being tracked properly when it leaves a player's inventory.  It could be an artifact from a prior bug and now we're just seeing the manifestations of it.  I've instructed my staff to continue writing down each situation in as much detail as possible and so far these 4-5 situations are the only things that have happened and we can't reproduce the bug.  I have turned debug mode on and will let the server run this way for the next few days to anticipate any future issues and will write more as I learn more about it. \r\n\r\nThanks!\r\n"},"comment":{"url":"https://api.github.com/repos/Rocologo/BagOfGold/issues/comments/422366946","html_url":"https://github.com/Rocologo/BagOfGold/issues/35#issuecomment-422366946","issue_url":"https://api.github.com/repos/Rocologo/BagOfGold/issues/35","id":422366946,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMjM2Njk0Ng==","user":{"login":"braceyourself07","id":4984394,"node_id":"MDQ6VXNlcjQ5ODQzOTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/4984394?v=4","gravatar_id":"","url":"https://api.github.com/users/braceyourself07","html_url":"https://github.com/braceyourself07","followers_url":"https://api.github.com/users/braceyourself07/followers","following_url":"https://api.github.com/users/braceyourself07/following{/other_user}","gists_url":"https://api.github.com/users/braceyourself07/gists{/gist_id}","starred_url":"https://api.github.com/users/braceyourself07/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/braceyourself07/subscriptions","organizations_url":"https://api.github.com/users/braceyourself07/orgs","repos_url":"https://api.github.com/users/braceyourself07/repos","events_url":"https://api.github.com/users/braceyourself07/events{/privacy}","received_events_url":"https://api.github.com/users/braceyourself07/received_events","type":"User","site_admin":false},"created_at":"2018-09-18T12:09:06Z","updated_at":"2018-09-18T12:09:06Z","author_association":"NONE","body":"```\r\n[16:13:14] [Server thread/INFO]: [BagOfGold][Debug] Added 4480 to Vancient's item in slot 13, new value is 5069 (addBagOfGoldPlayer_EconomyManager)\r\n[16:13:14] [Server thread/INFO]: [BagOfGold][Debug] Deposit 4480 to Vancient's account, new balance is 5069\r\n[16:13:14] [Server thread/INFO]: [ChestShop] WelcomeToFinland bought 64 Diamond for 4480.00 from Vancient at [world] 1024, 71, 540\r\n[16:13:18] [Server thread/INFO]: [BagOfGold][Debug] Added 3010 to Vancient's item in slot 13, new value is 8079 (addBagOfGoldPlayer_EconomyManager)\r\n[16:13:18] [Server thread/INFO]: [BagOfGold][Debug] Deposit 3010 to Vancient's account, new balance is 8079\r\n[16:13:18] [Server thread/INFO]: [ChestShop] WelcomeToFinland bought 43 Diamond for 3010.00 from Vancient at [world] 1024, 71, 540\r\n[16:13:30] [Server thread/INFO]: [BagOfGold][Debug] RewardListener: InventoryCloseEvent adjusting balance to Amount of BagOfGold in Inventory: PlayerBalance: {player: Name:Vancient, WorldGrp:default, GameMode:SURVIVAL, Balance: 8079.0(+0.0), BankBalance: 655065.0(+0.0)}\r\n[16:13:35] [Server thread/INFO]: [MobHunting][Debug] Vancient halfed a reward in two (4039.5,4039.5)\r\n[16:13:36] [Server thread/INFO]: [BagOfGold][Debug] RewardListener: InventoryCloseEvent adjusting balance to Amount of BagOfGold in Inventory: PlayerBalance: {player: Name:Vancient, WorldGrp:default, GameMode:SURVIVAL, Balance: 8079.0(+0.0), BankBalance: 655065.0(+0.0)}\r\n[16:13:36] [Server thread/INFO]: [BagOfGold][Debug] Adding -4039 to Vancient's balance 8079\r\n[16:13:36] [Server thread/INFO]: [MobHunting][Debug] Vancient dropped 4039.5 money. (# of rewards left=796)\r\n[16:13:36] [Server thread/INFO]: [BagOfGold][Debug] Removing 4039.5 from Vancient's balance 4040\r\n[16:13:39] [Server thread/INFO]: [BagOfGold][Debug] Added 4040 to Vancient's item in slot 13, new value is 8079.5 (addBagOfGoldPlayer_EconomyManager)\r\n[16:13:39] [Server thread/INFO]: [BagOfGold][Debug] Deposit 4039.5 to Vancient's account, new balance is 4041\r\n[16:13:39] [Server thread/INFO]: [BagOfGold][Debug] Added -4039 to Vancient's item in slot 13, new value is 4040.5 (addBagOfGoldPlayer_EconomyManager)\r\n[16:13:39] [Server thread/INFO]: [MobHunting][Debug] Vancient picked up a Gold with a value:4039.5 (# of rewards left=795)(PickupRewards)\r\n[16:13:42] [Server thread/INFO]: [BagOfGold][Debug] RewardListener: InventoryCloseEvent adjusting balance to Amount of BagOfGold in Inventory: PlayerBalance: {player: Name:Vancient, WorldGrp:default, GameMode:SURVIVAL, Balance: 4041.0(+0.0), BankBalance: 655065.0(+0.0)}\r\n[16:13:44] [Server thread/INFO]: [BagOfGold][Debug] RewardListener: InventoryCloseEvent adjusting balance to Amount of BagOfGold in Inventory: PlayerBalance: {player: Name:Vancient, WorldGrp:default, GameMode:SURVIVAL, Balance: 4041.0(+0.0), BankBalance: 655065.0(+0.0)}\r\n[16:13:49] [Server thread/INFO]: [BagOfGold][Debug] RewardListener: InventoryCloseEvent adjusting balance to Amount of BagOfGold in Inventory: PlayerBalance: {player: Name:Vancient, WorldGrp:default, GameMode:SURVIVAL, Balance: 4041.0(+0.0), BankBalance: 655065.0(+0.0)}\r\n[16:13:50] [Server thread/INFO]: Vancient issued server command: /bag money balance\r\n[16:13:52] [Async Chat Thread - #77/INFO]: [survival] Vancient: Wtf\r\n[16:13:55] [Server thread/INFO]: [BagOfGold][Debug] RewardListener: InventoryCloseEvent adjusting balance to Amount of BagOfGold in Inventory: PlayerBalance: {player: Name:Vancient, WorldGrp:default, GameMode:SURVIVAL, Balance: 4041.0(+0.0), BankBalance: 655065.0(+0.0)}\r\n[16:13:57] [Async Chat Thread - #77/INFO]: [survival] Vancient: I just lost 4k\r\n```"}}
{"actor":{"display_login":"braceyourself07"}}