plan-player-analytics / Plan

Player Analytics plugin for Minecraft Server platforms - View player activity of your server with ease. :calendar:
https://www.spigotmc.org/resources/plan-player-analytics.32536/
GNU Lesser General Public License v3.0
866 stars 171 forks source link

Invsee ++ #2171

Open ILikeOrangeJuice opened 2 years ago

ILikeOrangeJuice commented 2 years ago

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/

AuroraLS3 commented 2 years ago

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.

ILikeOrangeJuice commented 2 years ago

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?

ILikeOrangeJuice commented 2 years ago

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?

AuroraLS3 commented 2 years ago

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