private void StartRide() {
        V10Dragon d = null;
        for (Entity e : player.getNearbyEntities(20, 20, 20)) {
            if (!(e instanceof EnderDragon)) {
                continue;
            }
            EntityEnderDragon eed = ((CraftEnderDragon) e).getHandle();
            if (eed instanceof V10Dragon) {
                d = (V10Dragon)eed;
                if (d.player.equalsIgnoreCase(playerName)) {
                    player.setAllowFlight(true);
                    break;
                } else {
                    d = null;
                }
            }
        }
        if (d == null) {
            sender.sendMessage(ChatColor.RED + "You dragon is to far away!");
        } else {
            d.getBukkitEntity().setPassenger(player);
        }
    }