public static boolean has(Permissible sender, String d, boolean onlyForOpInCaseOfNotPermissions) {
		if (!(sender instanceof Player)) {
			return true;
		}
		Player player = (Player) sender;
		if ((type != null) && (PluginsBaker.getDestiConfiguration().getBoolean("pluginsbaker.using_permissions", true))) {
			if (type == PermissionType.GROUPS_MANAGER) {
				return gp.getWorldsHolder().getWorldPermissions(player).has(player, d);
			} else if (type == PermissionType.PERMISSIONSEX) {
				return player.hasPermission(d);
			}
		}

		if (onlyForOpInCaseOfNotPermissions) {
			return player.isOp();
		}
		return true;
	}