Config File

Discussion in 'Plugin Development' started by Ula492, Jul 8, 2014.

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

    Ula492

    I need help with the config files I never used the config for anything this is my first time and I dont know how to make it so the player that is using this plugin can set its own Items. Please Help! Thanks <3
     
  2. Offline

    dsouzamatt

    Ula492 Have a read of this page on the Bukkit Wiki. If you have any trouble, feel free to ask here for help.
     
  3. Offline

    Ula492

  4. Offline

    dsouzamatt

    Ula492 What have you tried so far?
     
  5. Offline

    Ula492

  6. Offline

    macboinc

    Look at these video:
    P.S. You don't need to create a file called config.yml, to set information do getConfig().set("whatyouwant.whatyouwant", what you want to be set in that position.)

    Credit to PogoStick29
     
    PogoStick29 likes this.
  7. Offline

    Ula492

    @macboin Still didnt help:/ im trying to set block IDs into the config so you can change them when ever u want so if u add a Diamond ID you can change it into Gold or something that u want only 4 things can be there doe
     
  8. Offline

    kunhunjon

    Just use this to get a list
    Code:
    getConfig().getList("NameOfTheList");
    and this to set a list
    Code:java
    1. getConfig().set("Items", |Your List|)
     
Thread Status:
Not open for further replies.

Share This Page