Caching/Queuing data save to yml.

Discussion in 'Plugin Development' started by confuz3d, Feb 11, 2015.

Thread Status:
Not open for further replies.
  1. Offline



    I am currently in the process of adding a custom leveling system to one of my plugins and there are some things I've never really touched before so I figured I should probably ask some questions before getting into it.

    I will be storing players data such as their level, exp and class in a yml file.

    Pulling/storing data is a pretty simple process, but since I need to store their exp in there I'm afraid that writing to the file everytime a player picks up exp would be a huge performance drainer.

    If anyone has ideas on how I can write data to the file say every X minutes, help would be very appreciated.
  2. Offline


    confuz3d likes this.
  3. Offline


    Oh, I think that should do the trick. Thank you.

    I'll come back here if I need help with anything else.

    @mythbusterma That was all I needed, thanks for showing me the way :D
    Last edited: Feb 12, 2015
Thread Status:
Not open for further replies.

Share This Page