[DEV]Config status

Discussion in 'Plugin Development' started by metincasper, Sep 30, 2014.

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

    metincasper

    Hi
    I trying to make a "Warn" plugin where it stores the warn message in the config. But i have a issue i can't fix couse when i give a player a new warning it replace the old one.
    So, how do i do so it make a list with all the warns in the config.yml?

    Here is my code:

    [​IMG]
     
  2. Offline

    Hawktasard

    What's with the addDefault?
     
  3. Offline

    metincasper

    Hmmm... that was just my bet on how to do it but that did'nt work
     
  4. Offline

    Goblom

    Wrong section
     
  5. Offline

    metincasper

    Do someone know what i have to do so it make a list in the config.yml?
     
  6. Offline

    CraftCreeper6

    metincasper
    Create a List<String>
    addAll of the current Config warns.
    Then Add the other warn to the List
    Save the Config as the List
    Done!

    EDIT: Typosss
     
  7. Offline

    metincasper

    Can you please give me a screenshot or something to show me? Couse i didnt relly understand that
     
Thread Status:
Not open for further replies.

Share This Page