Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[New API]Creating Configs?

Comments in 'Plugin Development' started by wviper3, Jul 14, 2014.

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

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Use a database. This way would cause lag in large servers.
  2. Dutok
    Offline

    Dutok Notable Member Plugin Developer

    Joined:
    Jun 20, 2014
    Posts:
    371
    Plugins:
    3
    Minecraft User:
    Dutok
    Yeah, I know. That code I'm using was updated to SQLite later on, but he asked for yaml so I gave it. :cool:
  3. wviper3
    Offline

    wviper3 New Member

    Joined:
    Jul 8, 2014
    Posts:
    8
    Minecraft User:
    wviper3
    I am, but I do not understand the set command and the docs are very confusing. I did $this->saves->players because I wanted to access the array, but now I know how.
  4. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Oh yeah I forgot there are __set() and __get() functions in Config too, but I don't like using them as they sound unstable to me.
  5. wviper3
    Offline

    wviper3 New Member

    Joined:
    Jul 8, 2014
    Posts:
    8
    Minecraft User:
    wviper3
    I am confused and it is too hard to save data in YAML, so if you guys could tell me how to save data with SQLite I would greatly appreciate it. I have found an example for the old API but not the new one.
  6. Dutok
    Offline

    Dutok Notable Member Plugin Developer

    Joined:
    Jun 20, 2014
    Posts:
    371
    Plugins:
    3
    Minecraft User:
    Dutok
  7. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Well... I would say, saving in YAML basically means saving in arrays, strings and primitive data types. If you can't properly use arrays, sorry. Only one way out.
  8. I_Is_Payton_
    Offline

    I_Is_Payton_ Active Member Plugin Developer

    Joined:
    Jan 18, 2014
    Posts:
    76
    Plugins:
    1
    Minecraft User:
    I_Is_Payton_
    If the config is not created I believe it will not return why using @mkdir.
    Just something I have been hearing...
  9. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    Wow... a year already.
    PEMapModder likes this.
  10. I_Is_Payton_
    Offline

    I_Is_Payton_ Active Member Plugin Developer

    Joined:
    Jan 18, 2014
    Posts:
    76
    Plugins:
    1
    Minecraft User:
    I_Is_Payton_
    Then again,
    Catching up.
    Legoboy0215 likes this.
Thread Status:
Not open for further replies.

Share This Page

Advertisement