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

Array Config

Discussion in 'Facepalm' started by KittyDev, Aug 27, 2017.

  1. KittyDev

    KittyDev Slime

    Messages:
    96
    GitHub:
    FreakingDev
    I want to save playername and points in config.yml using array? Like this

    player1: 4
    player2: 4
     
  2. Teamblocket

    Teamblocket Zombie

    Messages:
    301
    GitHub:
    teamblocket
    $this->getConfig()->set('player1', array('an array omg'));
    $this->getConfig()->save();
     
  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.