@Override
public void onEnable() {
saveDefaultConfig();
setState(States.WAITING);
PluginManager pm = getServer().getPluginManager();
pm.registerEvents(new Join(this), this);
World world = Bukkit.getWorld(getConfig().getString("Locations.world"));
double x1 = getConfig().getDouble("Locations.Island1.x");
double y1 = getConfig().getDouble("Locations.Island1.y");
double z1 = getConfig().getDouble("Locations.Island1.z");
double x2 = getConfig().getDouble("Locations.Island2.x");
double y2 = getConfig().getDouble("Locations.Island2.y");
double z2 = getConfig().getDouble("Locations.Island2.z");
double x3 = getConfig().getDouble("Locations.Island3.x");
double y3 = getConfig().getDouble("Locations.Island3.y");
double z3 = getConfig().getDouble("Locations.Island3.z");
double x4 = getConfig().getDouble("Locations.Island4.x");
double y4 = getConfig().getDouble("Locations.Island4.y");
double z4 = getConfig().getDouble("Locations.Island4.z");
spawns.add(new Location(world, x1, y1, z1));
spawns.add(new Location(world, x2, y2, z2));
spawns.add(new Location(world, x3, y3, z3));
spawns.add(new Location(world, x4, y4, z4));
//SECONDS ISLAND
chests.add(new Location(world, -11, 39, 28) );
chests.add(new Location(world, -14, 39, 27));
chests.add(new Location(world, -11, 39, -11) );
chests.add(new Location(world, -12, 40, -14));
chests.add(new Location(world, 28, 39, -10) );
chests.add(new Location(world, 29, 40, -13));
chests.add(new Location(world, 28, 39, 27) );
chests.add(new Location(world, 26, 40, 31));
//SPAWNS ISLANDS
chests.add(new Location(world, -48, 44, 8) );
chests.add(new Location(world, -53, 45, 10));
chests.add(new Location(world, 6, 44, -51) );
chests.add(new Location(world, 7, 40, -54));
chests.add(new Location(world, 69, 45, 6) );
chests.add(new Location(world, 72, 44, 11));
chests.add(new Location(world, 8, 44, 64) );
chests.add(new Location(world, 9, 46, 71));
//MIDDLE
chests.add(new Location(world, 8, 36, 9) );
chests.add(new Location(world, 7, 36, 8));
chests.add(new Location(world, 8, 36, 7) );
chests.add(new Location(world, 9, 36, 8));
}