Making commands edit config files

Discussion in 'Plugin Development' started by MeZTech, Oct 14, 2012.

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

    MeZTech

    I want to make one of my commands edit text in the config.yml that another command will list. So I want the command /addwanted (Player) to add the playername to a list in the config.yml, and I want /listwanted to show all the wanted players in the list in the config.yml. I know how to make /listwanted, but I need help with /addwanted
     
  2. Offline

    Vandrake

    My code(Portion):
    Code:
    List<String> configList = (List<String>)orifile.getList("friend list");
    First you get the list.
    Then add the new string to it.
    Code:
    configList.add("Whatever");
     
Thread Status:
Not open for further replies.

Share This Page