1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Solved Simple Question about Config

Discussion in 'Development' started by ShushImSam, Aug 14, 2019.

  1. ShushImSam

    ShushImSam Spider Jockey

    Messages:
    37
    I'll be honest I was a little confuse on where I should ask this question since it's not really related to anything.. I just wanted to know, If you use a Config variable for multiple files (ex for every player YAML files)
    if you only save onDisable, will you save all the files or you will save only the last file created?

    +

    If you use multiple config files in the same config, can you use the same variable for all of them? Or you must use a different for each one? (Which seems to be working right now, but if I could make it cleaner and have better performance, I'd gladly take it)
     
  2. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    You'll need to save all configs you made changes to by calling Config->save();
    See this answer: https://bit.ly/PmDev#yaml-vs-sql
     
    HimbeersaftLP and ShushImSam like this.
  3. ShushImSam

    ShushImSam Spider Jockey

    Messages:
    37
    I have to learn how to use MySQL since I'm given it for free with my host, Thanks!
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.