GrantService

public interface GrantService

Service for managing skin grants and active skins.

Functions

Link copied to clipboard
public abstract void checkAndRevokeExpiredGrants()
Link copied to clipboard
@NotNull()
public abstract @NotNull() CompletableFuture<Optional<String>> getActiveSkin(@NotNull() @NotNull() UUID playerUuid, @NotNull() @NotNull() Material material)
Gets the active skin ID for a player and material.
Link copied to clipboard
@NotNull()
public abstract @NotNull() CompletableFuture<Map<Material, String>> getAllActiveSkins(@NotNull() @NotNull() UUID playerUuid)
Gets all active skins for a player.
Link copied to clipboard
@NotNull()
public abstract @NotNull() CompletableFuture<Collection<SkinGrant>> getGrants(@NotNull() @NotNull() UUID playerUuid)
Gets all skin grants for a player.
Link copied to clipboard
@NotNull()
public abstract @NotNull() CompletableFuture<Void> grantBundle(@NotNull() @NotNull() UUID playerUuid, @NotNull() @NotNull() String bundleId, @NotNull() @NotNull() String source)
Grants a bundle to a player.
Link copied to clipboard
@NotNull()
public abstract @NotNull() CompletableFuture<Void> grantSkin(@NotNull() @NotNull() UUID playerUuid, @NotNull() @NotNull() String skinId, @NotNull() @NotNull() String source)
Grants a skin to a player.
@NotNull()
public abstract @NotNull() CompletableFuture<Void> grantSkin(@NotNull() @NotNull() UUID playerUuid, @NotNull() @NotNull() String skinId, @NotNull() @NotNull() String source, int days)
Link copied to clipboard
@NotNull()
public abstract @NotNull() CompletableFuture<Boolean> hasBundle(@NotNull() @NotNull() UUID playerUuid, @NotNull() @NotNull() String bundleId)
I need to change this scuffed thing, and have direct Bundle Grants not to grant skins
Link copied to clipboard
@NotNull()
public abstract @NotNull() CompletableFuture<Boolean> hasSkin(@NotNull() @NotNull() UUID playerUuid, @NotNull() @NotNull() String skinId)
Checks if a player owns a specific skin.
Link copied to clipboard
@NotNull()
public abstract @NotNull() CompletableFuture<Void> revokeBundle(@NotNull() @NotNull() UUID playerUuid, @NotNull() @NotNull() String bundleId)
Revokes a bundle from a player.
Link copied to clipboard
@NotNull()
public abstract @NotNull() CompletableFuture<Void> revokeSkin(@NotNull() @NotNull() UUID playerUuid, @NotNull() @NotNull() String skinId)
Revokes a skin from a player.
Link copied to clipboard
@NotNull()
public abstract @NotNull() CompletableFuture<Void> setActiveSkin(@NotNull() @NotNull() UUID playerUuid, @NotNull() @NotNull() Material material, @Nullable() @Nullable() String skinId)
Sets the active skin for a material.