Config

Discussion in 'Plugin Development' started by MrTheNewGuy, Oct 29, 2012.

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

    MrTheNewGuy

    i need to get a list form the config by a command. and i need to add/remove strings to that list by commands. does someone know how to do this?
    thanks!
     
  2. Offline

    GRPGamer

    Can you explain abit better so people could understand? Thanks
     
  3. Offline

    sensus12

    GRPGamer

    I think he wanna do like in permissionEx, example:
    Code:
    /pex group default add your.perm
    , and it add a string to config.

    So he wanna to do:
    Code:
    /list add OP is op
    and it add to config.
     
  4. Offline

    GRPGamer

  5. Offline

    sensus12

    GRPGamer Just add string to config by command.
     
  6. Offline

    MrTheNewGuy

    and remove
     
  7. Offline

    Sagacious_Zed Bukkit Docs

    There are two parts to solving your problem. First you have to get the list from the config.yml. This you can learn how to do on the wiki.
    The second is adding an element to a list, this you can learn how to from the oracle collections tutorial.
     
Thread Status:
Not open for further replies.

Share This Page