EncryptSL / LiteEco

Minecraft Economy Plugin works with vault.
26 stars 9 forks source link

[Feature Request]: Storing Transactions #89

Open michaelsaccone opened 1 month ago

michaelsaccone commented 1 month ago

Type of function to add or improvement

No response

Your ideas

For statistics and management purpose, I would like to save on the DB every user transaction, with sender, recipient, currency, amount and timestamp. Currently you could do it by accessing the API, but maybe it would be cooler to have as a standard feature. I could manage to work on it and open a PR if possible

EncryptSL commented 1 month ago

I like it.. you can start works on it.

LcyDev commented 1 month ago

Should this be able to save on a separate DB?

EncryptSL commented 1 month ago

I don't think. Because myself i think another open connection to database is waisting of sources if you are using mysql.

I think good way is create some api for transactions, and save into current database.db

I added before long a time something like a log, where admin can see transactions but without api access. Probably this need be changed and use one api for that.

For admins where will be visible all transactions and separate for players.