{"id":23396339,"url":"https://github.com/Stuyk/rebar-character-select","last_synced_at":"2025-08-24T14:31:27.389Z","repository":{"id":239070806,"uuid":"798434051","full_name":"Stuyk/rebar-character-select","owner":"Stuyk","description":"A character selection plugin for Rebar","archived":false,"fork":false,"pushed_at":"2024-05-23T17:56:00.000Z","size":19,"stargazers_count":3,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T07:23:15.567Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://rebarv.com/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Stuyk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-09T19:10:07.000Z","updated_at":"2024-12-12T16:07:26.000Z","dependencies_parsed_at":"2024-05-09T20:42:23.994Z","dependency_job_id":"d6830214-f3c6-47cb-9f30-8e7570339de2","html_url":"https://github.com/Stuyk/rebar-character-select","commit_stats":null,"previous_names":["stuyk/rebar-character-select"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Stuyk/rebar-character-select","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stuyk%2Frebar-character-select","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stuyk%2Frebar-character-select/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stuyk%2Frebar-character-select/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stuyk%2Frebar-character-select/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Stuyk","download_url":"https://codeload.github.com/Stuyk/rebar-character-select/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stuyk%2Frebar-character-select/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271887593,"owners_count":24839135,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-24T02:00:11.135Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-22T07:35:16.878Z","updated_at":"2025-08-24T14:31:27.101Z","avatar_url":"https://github.com/Stuyk.png","language":"TypeScript","funding_links":[],"categories":["Character"],"sub_categories":[],"readme":"# Character Select for Rebar Framework\n\nThis plugin allows a user to create a character entry after authenticating, or select an existing character.\n\nIt automatically binds a `character` document to the player after authentication.\n\n## Requires\n\nYou must have these plugins installed to use this plugin.\n\n-   [Rebar Auth](https://github.com/Stuyk/rebar-auth)\n\n## Features\n\n-   Create a Character Entry\n-   Delete a Character Entry\n-   Select a Character Entry\n-   Config to Create First \u0026 Last Name Character\n-   Config to Create Single Named Character\n-   Config to Limit Total Characters Allowed\n-   Config for Single Character Login\n-   Translations\n\n## API\n\nIf you need to listen for when a player has selected a character you can use the `character-select-api`.\n\n```ts\nimport * as alt from 'alt-server';\nimport { useRebar } from '@Server/index.js';\nimport { Character } from '@Shared/types/character.js';\n\nconst Rebar = useRebar();\nconst api = Rebar.useApi();\n\nfunction handleCharacterSelected(player: alt.Player, character: Character) {}\n\nasync function init() {\n    // Wait for the API to be ready\n    await alt.Utils.waitFor(() =\u003e api.isReady('character-select-api'), 30000);\n\n    // Get the API\n    const charSelectApi = api.get('character-select-api');\n\n    // Hook in your event\n    charSelectApi.onSelect(handleCharacterSelected);\n}\n\ninit();\n```\n\n## Installation\n\nFrom the main directory of your `Rebar` framework.\n\n```\ngit clone https://github.com/Stuyk/rebar-character-select src/plugins/character-select\n```\n\nThat's it.\n\nIf you wish to save the plugin in your own repository, go to the `src/plugins/character-select` folder and delete the `.git` folder.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FStuyk%2Frebar-character-select","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FStuyk%2Frebar-character-select","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FStuyk%2Frebar-character-select/lists"}