Type Alias PermissionTable

Mapping of restrict-able commands to their current permissions level.

type PermissionTable = {
    collect: PermissionValue;
    release: PermissionValue;
    remaining: Omit<PermissionValue, typeof auto | typeof autoEnabled>;
}
Index

Dictates what is allowed when it comes to a player collecting their run. A collect is an action which sends the rest of the items in a player's run.

Dictates what is allowed when it comes to a player releasing their run. A release is an action which distributes the rest of the items in a player's run to those other players awaiting them.

remaining: Omit<PermissionValue, typeof auto | typeof autoEnabled>

Dictates what is allowed when it comes to a player querying the items remaining in their run.

  • permissions.goal: Allows a player to query for items remaining in their run but only after they completed their own goal.
  • permissions.enabled: Denotes that players may query for any items remaining in their run (even those belonging to other players).
  • permissions.disabled: All remaining item query modes disabled.

This command cannot have the permissions.auto or permissions.autoEnabled permission.