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

Config

Comments in 'Plugin Development' started by MineBuilderFR, Dec 13, 2015.

  1. MineBuilderFR
    Offline

    MineBuilderFR Active Member

    Joined:
    Mar 14, 2015
    Posts:
    56
    Minecraft User:
    MineBuilderFR
    Hi

    I have one config :

    =-=
    - PlayerTest : true
    - PlayerTest2 : True
    - PlayerTest3 : False
    - PlayerTest4 : False
    - PlayerTest5 : True
    =-=

    I want to get Player with : false

    Thanks for your reply :)
  2. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    PHP:
    $keys = [];
    foreach(
    $config->getAll() as $player => $bool){
      if(!
    $bool$keys[] = $player;
    }
  3. MineBuilderFR
    Offline

    MineBuilderFR Active Member

    Joined:
    Mar 14, 2015
    Posts:
    56
    Minecraft User:
    MineBuilderFR
    Thanks :)

Share This Page

Advertisement