Plan icon indicating copy to clipboard operation
Plan copied to clipboard

[Ledger Support] Adds more analytics for Plan

Open itsdinkd opened this issue 4 years ago • 4 comments

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

itsdinkd avatar Sep 20 '21 19:09 itsdinkd

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.

AuroraLS3 avatar Sep 21 '21 05:09 AuroraLS3

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.

Giggitybyte avatar Oct 31 '21 06:10 Giggitybyte

I have opened a ticket to get an api for ledger

AuroraLS3 avatar Oct 31 '21 06:10 AuroraLS3

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

Genau6502 avatar Oct 31 '21 15:10 Genau6502