Help logging economy statistics
So right now, I'm using SellGUI (https://www.spigotmc.org/resources/sellgui.55201/) for the nice GUI and EssentialsX as my economy plugin. I want to be able to log when a player sells an item, check what items they have sold and how much each item sold for, and place them into a text file formatted like a leaderboard, showing the total amount of money made from players selling that specific item. My problem is that I have no clue how I can get the logs of the players selling an item, check for the item, how many were sold, how much each sold for, etc. I have my own plugin I'm working on, so any assistance on how I can check for that would be very appreciated.
2 Replies
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close
!close
!solved
!answered
Requested by candong#0
Hmm... Ok well given you can write your own plugins I'd suggest taking a look at the standard observability stack in Prometheus, Grafana, Loki, and Promtail.
Having that data available in your server is useful, but you should 100% tie it into a set of Grafana boards so you can easily track that price over time.