Package simpleserver.config

Examples of simpleserver.config.LegacyChestList$Chest


      locations.put(coord, chest);
    }
  }

  private void loadOldConfig() {
    LegacyChestList old = new LegacyChestList();
    old.load();
    for (Coordinate coord : old.locations.keySet()) {
      simpleserver.config.LegacyChestList.Chest chest = old.locations.get(coord);
      if (chest.isOpen()) {
        locations.put(coord, new Chest(coord));
      } else if (chest.name().equals("Locked chest") || chest.name().length() == 0) {
        locations.put(coord, new Chest(chest.owner(), coord));
      } else {
        locations.put(coord, new Chest(chest.owner(), coord, chest.name()));
      }
    }
    old.save();
  }
View Full Code Here

TOP

Related Classes of simpleserver.config.LegacyChestList$Chest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.