Minecrell / ServerListPlus

A flexible Minecraft plugin to customize the appearance of your server in the server list
https://git.io/slp
GNU General Public License v3.0
236 stars 60 forks source link

[Cache Question] I need to disable the auto cache creation. #325

Closed Taryro55 closed 3 years ago

Taryro55 commented 3 years ago

Hi, I wanted to challenge myself to improve my coding skills, but I soon realized that I'm too new to coding to complete my goal. So here I am, asking because I'm very annoyed, and I can't stop thinking about this issue. Basically, each time a user joins, it is added to the file PlayerCache.json, I need to disable this, I have been checking the decompiled code, but can't find a way to disable this. If anyone knows what would be needed to change on the code to achieve this, a comment would be very appreciated!

stephan-gh commented 3 years ago

You can disable the storage (PlayerCache.json) or the player tracking entirely in the configuration file. Just set PlayerTracking -> Enabled: false or Storage -> Enabled: false:

--- !Plugin
# ...
PlayerTracking:
  Enabled: false
  Storage: !JSONStorage
    Enabled: false
    SaveDelay: 5m
# ...
Taryro55 commented 3 years ago

Thanks, this helped a lot!