Advertisement
Guest User

Config

a guest
Jun 5th, 2013
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. /* */ private void load() {
  2. /* 90 */ this.file.load();
  3. /* */
  4. /* 93 */ Map defaults = new HashMap();
  5. /* 94 */ defaults.put("cast-cooldown.minutes", Integer.valueOf(5));
  6. /* 95 */ defaults.put("cast-cooldown.seconds", Integer.valueOf(0));
  7. /* 96 */ defaults.put("cast-range", Integer.valueOf(20));
  8. /* 97 */ defaults.put("wand", "STICK");
  9. /* */ Iterator localIterator2;
  10. /* 98 */ for (Iterator localIterator1 = this.plugin.loadSpells().iterator(); localIterator1.hasNext();
  11. /* 99 */ localIterator2.hasNext())
  12. /* */ {
  13. /* 98 */ Spell spell = (Spell)localIterator1.next();
  14. /* 99 */ localIterator2 = spell.loadSettings().entrySet().iterator(); continue; Map.Entry entry = (Map.Entry)localIterator2.next();
  15. /* 100 */ defaults.put(spell.getConfigName() + "." + (String)entry.getKey(), entry.getValue());
  16. /* */ }
  17. /* */
  18. /* 104 */ for (Map.Entry entry : defaults.entrySet())
  19. /* 105 */ if (!this.file.containsKey((String)entry.getKey()))
  20. /* 106 */ this.file.set((String)entry.getKey(), entry.getValue());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement