GrantManager

public final class GrantManager implements GrantService

Implementation of GrantService.

Constructors

Link copied to clipboard
public void GrantManager(Plugin plugin, DatabaseManager db, CacheManager cache, SkinManager skinManager, LogService logService, ModelService modelService)
Constructs a new GrantManager.

Functions

Link copied to clipboard
Link copied to clipboard
@NotNull()
public @NotNull() CompletableFuture<Optional<String>> getActiveSkin(@NotNull() @NotNull() UUID playerUuid, @NotNull() @NotNull() Material material)
Link copied to clipboard
@NotNull()
public @NotNull() CompletableFuture<Collection<SkinGrant>> getGrants(@NotNull() @NotNull() UUID playerUuid)
Link copied to clipboard
@NotNull()
public @NotNull() CompletableFuture<Void> grantBundle(@NotNull() @NotNull() UUID playerUuid, @NotNull() @NotNull() String bundleId, @NotNull() @NotNull() String source)
Link copied to clipboard
@NotNull()
public @NotNull() CompletableFuture<Void> grantSkin(@NotNull() @NotNull() UUID playerUuid, @NotNull() @NotNull() String skinId, @NotNull() @NotNull() String source)
@NotNull()
public @NotNull() CompletableFuture<Void> grantSkin(@NotNull() @NotNull() UUID playerUuid, @NotNull() @NotNull() String skinId, @NotNull() @NotNull() String source, int days)
Link copied to clipboard
@NotNull()
public @NotNull() CompletableFuture<Boolean> hasSkin(@NotNull() @NotNull() UUID playerUuid, @NotNull() @NotNull() String skinId)
Link copied to clipboard
public void refreshPlayerSkins(@NotNull() @NotNull() Player player)
Refreshes all skins in a player's inventory based on their active skins in the database.
Link copied to clipboard
@NotNull()
public @NotNull() CompletableFuture<Void> revokeBundle(@NotNull() @NotNull() UUID playerUuid, @NotNull() @NotNull() String bundleId)
Link copied to clipboard
@NotNull()
public @NotNull() CompletableFuture<Void> revokeSkin(@NotNull() @NotNull() UUID playerUuid, @NotNull() @NotNull() String skinId)
Link copied to clipboard
@NotNull()
public @NotNull() CompletableFuture<Void> setActiveSkin(@NotNull() @NotNull() UUID playerUuid, @NotNull() @NotNull() Material material, @Nullable() @Nullable() String skinId)