NightbreakContentManager
Utility class for managing Nightbreak content downloads and access checks. Provides async operations and caching for efficient content management.
Functions
Link copied to clipboard
Checks access for a content slug asynchronously.
public static void checkAccessAsync(JavaPlugin ownerPlugin, String slug, Consumer<NightbreakAccount.AccessInfo> callback)
Link copied to clipboard
Clears all caches.
Link copied to clipboard
public static void downloadAsync(String slug, File destinationFolder, Player player, Consumer<Boolean> onComplete)
Downloads content asynchronously with progress updates.
public static void downloadAsync(JavaPlugin ownerPlugin, String slug, File destinationFolder, Player player, Consumer<Boolean> onComplete)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Checks if the cache is stale and needs refreshing.
Link copied to clipboard
Refreshes the version cache by fetching all versions from Nightbreak.
Link copied to clipboard
Shows access purchase links to a player.