Solved Bukkit Config Help

Discussion in 'Plugin Development' started by zachoooo, May 5, 2013.

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

    zachoooo

    Hey developers! I have a quick question. For my plugin, I created a class called "ChatMessage" which contains a permissions node and a message. My config looks like this:

    http://dev.bukkit.org/paste/7130/

    How can I save all the chat message to the config. I can't just set "messages" to my list of chatmessages because that is setting it to a class. Do you guys have any ideas?
     
  2. Offline

    chasechocolate

    I would create a HashMap<String, List<String>>, the first string for the permission node and the string list for the messages. Then, to save it to a config, loop through each string in the HashMap.
     
    zachoooo and Ultimate_n00b like this.
Thread Status:
Not open for further replies.

Share This Page