public static void checkNearRideable(Player p) {
		RideThaMob.player.add(p.getName());
		List<Entity> l = new ArrayList<Entity>();
		for (int i = 1; i < (RideThaMob.pl.getConfig().getInt(
				"entity_check_radius") + 1); i++) {
			l = p.getNearbyEntities(i, i, i);
			if (!l.isEmpty()) {
				for (Entity e : l) {
					if (!RideThaMob.entity_blacklist.contains(e.getType())) {
						if (p.hasPermission("ridethamob.mob."
								+ e.getType().name())) {
							if (e.getPassenger() == null) {
								if (p.getPassenger() != null) {
									if (p.getPassenger().getEntityId() != e
											.getEntityId()) {
										ride(p, e);
										return;
									}
								} else {
									ride(p, e);
									return;
								}
							}
						}
					}
				}

			}
		}
		p.sendMessage(RideThaMob.cprefix
				+ Lang._(LangType.RIDE_NO_NEAR, RideThaMob.pl.getConfig()
						.getInt("entity_check_radius") + ""));
	}