interface SavedPlayerOnJoinAction_set_permission<
    P extends keyof ReturnType<Globals.PlayerPermissions["toJSON"]>,
> {
    permission: P;
    type: "set_permission";
    value: Pick<
        Globals.PlayerPermissions,
        | "canUseChatCommands"
        | "admin"
        | "canUseDangerousCommands"
        | "permissionLevel"
        | "canUseScriptEval"
        | "canUseCommands"
        | "canBypassProtectedAreas"
        | "getAllChatCommands",
    >[P];
}

Type Parameters

Properties

Properties

permission: P
type: "set_permission"
value: Pick<
    Globals.PlayerPermissions,
    | "canUseChatCommands"
    | "admin"
    | "canUseDangerousCommands"
    | "permissionLevel"
    | "canUseScriptEval"
    | "canUseCommands"
    | "canBypassProtectedAreas"
    | "getAllChatCommands",
>[P]