Solved Search for player in config.yml

Discussion in 'Development' started by ToddyWars, Feb 7, 2019.

  1. KielKing

    KielKing Zombie

    Messages:
    213
    GitHub:
    kielking
    PHP:
    $groups $this->config->get("groups");
    $groups["Savage"] = "joined in the server!";
    $this->config->set("groups"$groups);
     
  2. ToddyWars

    ToddyWars Spider Jockey

    Messages:
    30
    GitHub:
    ToddyWars
    Work with getConfig().

    Even after setting the message, only result if I give /reload. How do I upgrade without /reload ?
     
  3. di2134876

    di2134876 Spider Jockey

    Messages:
    29
    GitHub:
    dk1234987
    you add
    $this->config->save();

    i also discourage editing config files while the server is running, just stop the server THEN edit config files
     
  4. ToddyWars

    ToddyWars Spider Jockey

    Messages:
    30
    GitHub:
    ToddyWars
    When I enter the game it appears "any msg", put /ku set <msg> and then the message is received and it is saved successfully, only if I leave the server and enter continues "any msg" only when I type "/reload" that the new set of messages appears, somehow without needing "/reload"
     
  5. di2134876

    di2134876 Spider Jockey

    Messages:
    29
    GitHub:
    dk1234987
    where are you checking if the message is still "any msg"? can you show your code fully
     

Share This Page

  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.