gordyknows

DSchematicsSignsConfig.java

Mar 5th, 2012
19
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*     */ package net.deviantevil.deviantschematics;
  2. /*     */
  3. /*     */ import java.io.File;
  4. /*     */ import java.io.IOException;
  5. /*     */ import java.util.Iterator;
  6. /*     */ import java.util.List;
  7. /*     */ import java.util.Set;
  8. /*     */ import net.deviantevil.decore.DECore;
  9. /*     */ import net.deviantevil.utilities.Log;
  10. /*     */ import org.bukkit.Location;
  11. /*     */ import org.bukkit.Server;
  12. /*     */ import org.bukkit.World;
  13. /*     */ import org.bukkit.block.Block;
  14. /*     */ import org.bukkit.configuration.ConfigurationSection;
  15. /*     */ import org.bukkit.configuration.file.FileConfiguration;
  16. /*     */ import org.bukkit.configuration.file.YamlConfiguration;
  17. /*     */
  18. /*     */ public class DSchematicSignsConfig
  19. /*     */ {
  20. /*  19 */   private File configFile = DeviantSchematics.signsfolder;
  21. /*     */
  22. /*     */   public DSchematicSignsConfig()
  23. /*     */   {
  24. /*  23 */     this.configFile.mkdirs();
  25. /*     */   }
  26. /*     */
  27. /*     */   public boolean saveAllSchematicSigns()
  28. /*     */     throws IOException
  29. /*     */   {
  30. /*  29 */     if ((DSchematicSign.list == null) || (DSchematicSign.list.isEmpty())) {
  31. /*  30 */       return false;
  32. /*     */     }
  33. /*  32 */     for (int index = 0; index < DSchematicSign.list.size(); index++) {
  34. /*  33 */       DSchematicSign schemsign = (DSchematicSign)DSchematicSign.list.get(index);
  35. /*  34 */       if (schemsign == null) {
  36. /*     */         continue;
  37. /*     */       }
  38. /*  37 */       saveSchematicSign(schemsign);
  39. /*     */     }
  40. /*  39 */     return true;
  41. /*     */   }
  42. ...
RAW Paste Data