Buggy code:
public class ASkyBlock extends JavaPlugin { private boolean newIsland = false ; private static ASkyBlock plugin ; private static World acidWorld = null ; private File playersFolder ; private FileConfiguration challengeFile = null ; private File challengeConfigFile = null ; private Challenges challenges ; private FileConfiguration locale = null ; private File localeFile = null ; private YamlConfiguration welcomeWarps ; private HashMap < UUID , Object > warpList = new HashMap < UUID , Object > ( ) ; private Map < UUID , Integer > topTenList ; private PlayerCache players ; PotionEffectType acidPotion ; private Listener warpSignsListener ; private Listener lavaListener ; Spawn spawn ; HashSet < UUID > fallingPlayers = new HashSet < UUID > ( ) ; Biomes biomes ; private boolean debug = false ; private HashMap < UUID , List < String > > messages = new HashMap < UUID , List < String > > ( ) ; private YamlConfiguration messageStore ; private boolean calculatingLevel = false ; protected static ASkyBlock getPlugin ( ) { } protected Challenges getChallenges ( ) { } protected PlayerCache getPlayers ( ) { } protected static World getIslandWorld ( ) { } public File getPlayersFolder ( ) { } protected void deletePlayerIsland ( final UUID player ) { } protected boolean showTopTen ( final Player player ) { } @ Override public ChunkGenerator getDefaultWorldGenerator ( final String worldName , final String id ) { } protected static Location getLocationString ( final String s ) { } protected static String getStringLocation ( final Location l ) { } protected Location getSafeHomeLocation ( final UUID p ) { } protected void homeSet ( final Player player ) { } @ SuppressWarnings ( "deprecation" ) protected boolean homeTeleport ( final Player player ) { } protected boolean islandAtLocation ( final Location loc ) { if ( loc == null ) { return true ; } if ( loc . getBlock ( ) . getType ( ) . equals ( BEDROCK ) ) { return true ; } Vector v = loc . toVector ( ) ; v . multiply ( new Vector ( 1 , 0 , 1 ) ) ; <START_BUG> if ( ( ( getSpawn ( ) . getSpawnLoc ( ) ) != null ) && ( ( v . distanceSquared ( getSpawn ( ) . getSpawnLoc ( ) . toVector ( ) . multiply ( new Vector ( 1 , 0 , 1 ) ) ) ) < ( ( ( double ) ( ( double ) ( Settings . islandDistance ) ) ) * ( Settings . islandDistance ) ) ) ) { <END_BUG> return true ; } String checkName = ( ( ( loc . getBlockX ( ) ) + "," ) + ( loc . getBlockZ ( ) ) ) + ".yml" ; final File islandFile = new File ( ( ( ( ( ( ASkyBlock . plugin . getDataFolder ( ) ) + ( File . separator ) ) + "islands" ) + ( File . separator ) ) + checkName ) ) ; if ( islandFile . exists ( ) ) { return true ; } final int px = loc . getBlockX ( ) ; final int pz = loc . getBlockZ ( ) ; for ( int x = - 5 ; x <= 5 ; x ++ ) { for ( int y = 10 ; y <= 255 ; y ++ ) { for ( int z = - 5 ; z <= 5 ; z ++ ) { if ( loc . getWorld ( ) . getBlockAt ( ( x + px ) , y , ( z + pz ) ) . getType ( ) . equals ( BEDROCK ) ) { return true ; } } } } return false ; } protected boolean isNewIsland ( ) { } protected void setNewIsland ( boolean newIsland ) { } protected static boolean isSafeLocation ( final Location l ) { } protected static void saveYamlFile ( YamlConfiguration yamlFile , String fileLocation ) { } protected static YamlConfiguration loadYamlFile ( String file ) { } protected void loadWarpList ( ) { } protected void saveWarpList ( ) { } protected boolean addWarp ( UUID player , Location loc ) { } protected void removeWarp ( UUID uuid ) { } private void popSign ( Location loc ) { } protected void removeWarp ( Location loc ) { } protected boolean checkWarp ( Location loc ) { } protected Set < UUID > listWarps ( ) { } protected Location getWarp ( UUID player ) { } protected void loadPluginConfig ( ) { } @ Override public void onDisable ( ) { } @ Override public void onEnable ( ) { } protected boolean playerIsOnIsland ( final Player player ) { } protected boolean isOnIsland ( final Player owner , final Player target ) { } protected boolean locationIsOnIsland ( final Player player , final Location loc ) { } protected Location locationIsOnIsland ( final Set < Location > islandTestLocations , final Location loc ) { } protected void registerEvents ( ) { } protected void unregisterEvents ( ) { } protected void restartEvents ( ) { } protected void removeMobs ( final Location l ) { } protected void removeMobsFromIsland ( final Location loc ) { } protected boolean transferIsland ( final UUID playerOne , final UUID playerTwo ) { } protected void updateTopTen ( ) { } protected void saveDefaultChallengeConfig ( ) { } protected void reloadChallengeConfig ( ) { } protected FileConfiguration getChallengeConfig ( ) { } protected void saveChallengeConfig ( ) { } protected void saveDefaultLocale ( ) { } protected void reloadLocale ( ) { } protected FileConfiguration getLocale ( ) { } protected void saveLocale ( ) { } protected void tellOfflineTeam ( UUID playerUUID , String message ) { } protected boolean setMessage ( UUID playerUUID , String message ) { }

Fix:
if ( ( ( getSpawn ( ) . getSpawnLoc ( ) ) != null ) && ( ( v . distanceSquared ( getSpawn ( ) . getSpawnLoc ( ) . toVector ( ) . multiply ( new Vector ( 1 , 0 , 1 ) ) ) ) < ( ( ( double ) ( ( double ) ( spawn . getRange ( ) ) ) ) * ( spawn . getRange ( ) ) ) ) ) {