Checking all values of config

Discussion in 'Plugin Development' started by n31ln3t, Jul 13, 2013.

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

    n31ln3t

    Okay, so my config.yml file is: http://pastebin.com/kqySp2yc

    So, in my PlayerInteractEvent, I have an If statement:
    if (e.getAction() == Action.RIGHT_CLICK_BLOCK) {
    if ((b.getType() == Material.SIGN_POST) || (b.getType() == Material.WALL_SIGN)) {
    if(check plugin.yml if player clicked on a sign which is in the x,y,z of 'rules' then check x,y,z of 's')

    }
    }

    So basically what I mean by "if(check config.yml if player clicked on a sign which is in the x,y,z of 'rules' then check x,y,z of 's')"

    I want it to scan through the whole config.yml to see if any sign's positions are in the x,y,z of the key inside plugin.yml
     
  2. Offline

    Alxlre

    n31ln3t You do mean check the config.yml don't you?
     
  3. Offline

    n31ln3t

    Yeah, like scan through config.yml and then execute a block of code in the if statement.
     
Thread Status:
Not open for further replies.

Share This Page