Florent98 / EconomyInc

A simple base to add an economy to your server by adding commands, blocks, items and currency in game
11 stars 6 forks source link

[1.15.2] Request for money logging in logs [server-admin-tool] #30

Closed mr-poyo closed 4 years ago

mr-poyo commented 4 years ago

Hello again,

Just had my first case of a cheater on my server and I thought it might be cool to have some sort of logging feature for money changes. Basically, it would create a .log file in /logs/ and store any value changes per line for example:

[economyinc.log]
6/22/2020 20:25 - mr_poyo - 50.0
6/22/2020 20:26 - mr_poyo - 51.0
6/22/2020 20:27 - mr_poyo - 24.0
6/22/2020 20:27 - bobby - 107.0
6/22/2020 20:28 - mr_poyo - 26.0

Basically, whenever a player's balance is updated, a string is generated in the log.

Could have it generate different logs per day and store it in a /logs/economyinc/ folder as well.

Just an idea as this would help admins prepare evidence for any ''issues'' that may rise up.

Thanks for reading!

Florent98 commented 4 years ago

Hello, do you know how he cheated ? Was it by the seller ? It could be good to have more infos if you have some so I can see to patch that. Normally everything is "done" server side, which means even if the player (client) ask to buy something different then what the seller is selling, the server will verify everything and block that, but I may miss something that lead to that "cheat", so if you have any infos I'll take it!

Also yes that's a planned feature, but I'm very busy right now so there is no update, but be sure it's coming!

mr-poyo commented 4 years ago

Thanks. Looking forward to it!

Edit: Looks like he was duping items with an exploit in Refined Storage. I think it should be patched as of a few days ago. I, unfortunately, caught it too late.

Either way, i think the log will be super helpful when it comes to reviewing flags that pop up. Thank you 🙏

Florent98 commented 4 years ago

Ok that's good to see! Yes don't worry I'll be adding those logs !