public static CompletableFuture<Void> save(Track track, Sender sender, LuckPermsPlugin plugin) {
        try {
            plugin.getStorage().saveTrack(track).get();
        } catch (Exception e) {
            plugin.getLogger().warn("Error whilst saving track", e);
            Message.TRACK_SAVE_ERROR.send(sender, track.getName());
            return failedFuture(e);
        }

        return invalidateCachesAndPushUpdates(plugin);
    }
Utility methods for saving users, groups and tracks.
common/src/main/java/me/lucko/luckperms/common/command/utils/StorageAssistant.java