FileConfiguration arenaConfig = instance.getArenaConfig(); File file = new File(instance.getDataFolder(), "arena.schematic"); // Schematic File if (arenaConfig.getConfigurationSection("arena").getKeys(false).size() != 0) { if (arenaConfig.getInt("arena.position-2.y") > arenaConfig.getInt("arena.position-1.y")) { // If position 2's Y value is bigger then paste the schematic at that location (DOESNT WORK CORRECTLY) System.out.println("Position 2 Y is bigger"); pasteSchematic(file, instance.getSpleefArenaPosition1(), true); } else if (arenaConfig.getInt("arena.position-2.y") < arenaConfig.getInt("arena.position-1.y")) { // If position 1's Y value is bigger then paste the schematic at that location (WORKS CORRECTLY) System.out.println("Position 1 Y is bigger"); pasteSchematic(file, instance.getSpleefArenaPosition2(), true); } }