{"action":"opened","issue":{"url":"https://api.github.com/repos/EntityReborn/CHVirtualChests/issues/20","repository_url":"https://api.github.com/repos/EntityReborn/CHVirtualChests","labels_url":"https://api.github.com/repos/EntityReborn/CHVirtualChests/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/EntityReborn/CHVirtualChests/issues/20/comments","events_url":"https://api.github.com/repos/EntityReborn/CHVirtualChests/issues/20/events","html_url":"https://github.com/EntityReborn/CHVirtualChests/issues/20","id":135853532,"number":20,"title":"update_virtualchest() doesn't directly update the opened GUI menu","user":{"login":"macjuul","id":7606171,"avatar_url":"https://avatars.githubusercontent.com/u/7606171?v=3","gravatar_id":"","url":"https://api.github.com/users/macjuul","html_url":"https://github.com/macjuul","followers_url":"https://api.github.com/users/macjuul/followers","following_url":"https://api.github.com/users/macjuul/following{/other_user}","gists_url":"https://api.github.com/users/macjuul/gists{/gist_id}","starred_url":"https://api.github.com/users/macjuul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macjuul/subscriptions","organizations_url":"https://api.github.com/users/macjuul/orgs","repos_url":"https://api.github.com/users/macjuul/repos","events_url":"https://api.github.com/users/macjuul/events{/privacy}","received_events_url":"https://api.github.com/users/macjuul/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-23T20:22:43Z","updated_at":"2016-02-23T20:22:43Z","closed_at":null,"body":"I know this function is meant to update the chest cache, however it'd be neat to update the chest for all viewers as well. This allows for some fancy item tooltip \"animations\". I made an edit on my side and added the following piece of code to update_virtualchest()\r\n\r\n`for(MCHumanEntity p : inv.getViewers()) {\r\n    Bukkit.getPlayer(p.getName()).updateInventory();\r\n}`\r\n\r\nIt could also be possible to put this in it's own function, however putting it in update_virtualchest() seems better to me\r\n\r\n"}}