Plan
Plan copied to clipboard
[Ledger Support] Adds more analytics for Plan
Data to display
Ledger Wiki https://quiltservertools.github.io/Ledger/1.1.0/
You should use Ledger's API with this, would be amazing. You'd be able to display literally everything a player has done from which blocks they have broken, to entities killed, to items used, could see if XRAY is being used by players
It utilizes MySQL/Sqlite/and other DB options a well. It stores player events/entity events to be read in game, I imagine this could be utilized with Plan to make a kick a$$ dashboard. Ledger is really advanced, you can even detect player's using XRay.
Link to API or Source Code
https://github.com/QuiltServerTools/Ledger
Link to Project page or Downloads
https://www.curseforge.com/minecraft/mc-mods/ledger
I haven't used Kotlin before, but to my eyes it seems that Ledger does not have an API for reading data, only for writing - and their database object is not accessible. I'll have to double check in IDE to see if there are some methods not visible from the source code.
It may be worth it to reach out to the Ledger contributors; I'm sure they'd be willing to make needed modifications for compatibility.
I have opened a ticket to get an api for ledger
I haven't used Kotlin before, but to my eyes it seems that Ledger does not have an API for reading data, only for writing - and their database object is not accessible. I'll have to double check in IDE to see if there are some methods not visible from the source code.
Ledger dev here: there are definitely read methods. There's no need for a separate API because you can already search using parameters, like Ledger uses for inspecting, searching and other reads. These parameters are almost infinitely customisable. See https://github.com/QuiltServerTools/Ledger/blob/2a3e2ab2554f1775cd2114b046bee3ecaa7c0e7e/src/main/kotlin/com/github/quiltservertools/ledger/database/DatabaseManager.kt#L98