Skip to content

generify via a config #1

Description

@sleepingdragoninn

I reckon we can do a little bit of work to make this a generic "player roles sync via rest api" mod. sounds like a nice vanity project.

plus then it can go on modrinth.

kaleido config with:

  • URL with placeholder for minecraft accound ID for user fetching, key list to pull role string OR array from (append them)
  • URL to fetch event from for phase checking, key to pull phase string from
  • Map of role strings to player role IDs
  • Map of role strings to phase regex
user_api = "platform.modfest.net/user/mc:%s"
user_keys = ["registered", "role"]

state_api = "https://platform.modfest.net/event/toybox"
state_key = "phase"

[roles]
  "team_member" = "team"
  "volunteer" = "participant"
  "toybox" = "participant"

[conditions]
  "toybox" = "testing|building|showcase"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions