Plan
Plan copied to clipboard
Invsee ++
Data to display
Inventory and enderchest of the player you are viewing. Eg you look at Dinosaur24 at Skyblock - there will be a section for his current inventory and one for his enderchest (eventually inventory contains hotbar/armor?)
Best regards!:)
Link to API or Source Code
https://github.com/Jannyboy11/InvSee-plus-plus
Link to Project page or Downloads
https://www.spigotmc.org/resources/invsee.82342/
This is difficult to implement since the data from other plugins is updated on join and leave - so the data could very easily be out of date when viewing.
I think that is fine, if we can see the last inv when a player logged off and when he started, eventually there could be a refresh option to be chosen via config, say every minute, every 5 minutes etc. depending on the needs?
By further thinking about it, rather than a interval update defined in the config, wouldn't it be possible to add a refresh button to the player page, too, which let's u manually update ALL the stats of a certain thing there? This would be a handy improve in general I think?
There's two ways to get the data - pull based where data is asked for and returned on the spot, and push based where data is placed in a database to be pulled later.
With plugins Plan uses a push based system since the data can be on display on a network page even if the plugin is on a different server. While in this case it would still be possible to use a pull based system through plugin messaging channel (since the player is online) it would complicate things further.
I get the refresh button idea though (assuming you mean like how it works on the server page), it should probably be done at some point. - it was mostly ignored since all player page data comes from a single endpoint and all player page data is refreshed with the page