Search found 5 matches
- Wed Oct 12, 2011 8:36 pm
- Forum: Tutorials
- Topic: YML config using Key List
- Replies: 8
- Views: 1403
Re: YML config using Key List
Here's the full code from that file. package me.kevinhamil.plugins.assistant; import java.io.File; import java.util.HashMap; import org.bukkit.util.config.Configuration; public class AssistantConfig { public static Assistant plugin; private Configuration config; private HashMap<String, Object> confi...
- Wed Oct 12, 2011 7:05 pm
- Forum: Tutorials
- Topic: YML config using Key List
- Replies: 8
- Views: 1403
Re: YML config using Key List
Ok. If you could, I would like to understand how to fix that error though incase I need to use an ArrayList and add items. On another note, rethinking my plugin structure I was able to do this: keywords: topic-name: words: negative: - - word1 - word2 - - word1 - word2 positive: - - word1 - word2 - -...
- Tue Oct 11, 2011 9:49 pm
- Forum: Tutorials
- Topic: YML config using Key List
- Replies: 8
- Views: 1403
Re: YML config using Key List
I actually tried to do it the way you suggested first, but now I remember why I was looking for another way (thinking I was doing it incorrectly).
When I use your suggested code I get this error:
package defaultWordList does not exist
<identifier> expected
illegal start of type
When I use your suggested code I get this error:
package defaultWordList does not exist
<identifier> expected
illegal start of type
- Tue Oct 11, 2011 9:21 pm
- Forum: Tutorials
- Topic: YML config using Key List
- Replies: 8
- Views: 1403
Re: YML config using Key List
Thanks for your feedback. I have two more questions. 1) I was able to figure out what I needed with the code below. Does it yield a different end result compared to the code you suggested? private HashMap<String, Object> configDefaults = new HashMap<String, Object>(); private String[] defaultWordLis...
- Mon Oct 10, 2011 10:31 pm
- Forum: Tutorials
- Topic: YML config using Key List
- Replies: 8
- Views: 1403
YML config using Key List
I was following along with the Configuration File tutorial, but in the first video I'm a bit lost as to how I expand on the tutorial to accomodate my needs. Any help would be appreciated. For my configuration file I would like it to look similar to this... keywords: topic-name: words: - word - word ...