|
| 1 | +--- |
| 2 | +sidebar_position: 4 |
| 3 | +sidebar_label: Plugin Repository |
| 4 | +--- |
| 5 | + |
| 6 | +# Plugin Repository |
| 7 | + |
| 8 | +The Plugin Repository allows you to browse, install, and update game configurations, Docker blueprints, scripts, themes, and language packs from centralized repositories. |
| 9 | + |
| 10 | +## Accessing the Plugin Repository |
| 11 | + |
| 12 | +1. Go to **Settings** > **Plugin Repositories** |
| 13 | +2. Click on a repository to browse its contents |
| 14 | + |
| 15 | +## Default Repository |
| 16 | + |
| 17 | +TCAdmin includes a default plugin repository maintained by TCAdmin that contains official game configurations and other plugins. This repository cannot be deleted or modified. |
| 18 | + |
| 19 | +## Browsing Plugins |
| 20 | + |
| 21 | +When you open a repository, plugins are organized into tabs: |
| 22 | + |
| 23 | +| Tab | Description | |
| 24 | +|-----|-------------| |
| 25 | +| **Games** | Game server configurations (Minecraft, CS2, Rust, ARK, etc.) | |
| 26 | +| **Docker** | Docker blueprint configurations for containerized services | |
| 27 | +| **Scripts** | Game scripts, Docker scripts, and script modules | |
| 28 | +| **Themes** | UI themes to customize the control panel appearance | |
| 29 | +| **Languages** | Language packs for localization | |
| 30 | + |
| 31 | +Each plugin card displays: |
| 32 | +- Plugin name and author |
| 33 | +- Short description |
| 34 | +- Version number and available versions |
| 35 | +- Tags for categorization |
| 36 | +- Last update time |
| 37 | + |
| 38 | +## Installing a Plugin |
| 39 | + |
| 40 | +1. Click **View Details** on a plugin card |
| 41 | +2. Select the **Version** you want to install |
| 42 | +3. Select the specific configuration file (some plugins include multiple configurations) |
| 43 | +4. Optionally select an existing item to update instead of creating a new one |
| 44 | +5. Click **Install** |
| 45 | + |
| 46 | +The installation runs as a background task. A dialog will show the progress and any messages. |
| 47 | + |
| 48 | +:::warning Updating Existing Items |
| 49 | +When installing a plugin, you can choose to update an existing game, Docker blueprint, script, theme, or language instead of creating a new one. If you made customizations to the existing item, they will be lost. |
| 50 | +::: |
| 51 | + |
| 52 | +## Adding Third-Party Repositories |
| 53 | + |
| 54 | +You can add additional plugin repositories from third-party sources: |
| 55 | + |
| 56 | +1. Go to **Settings** > **Plugin Repositories** |
| 57 | +2. Click **Add** |
| 58 | +3. Enter the repository details: |
| 59 | + - **Name** - A friendly name for the repository |
| 60 | + - **Git URL** - The Git repository URL |
| 61 | + - **Branch** - The branch to use (default: `master`) |
| 62 | + - **Credential** - Select a saved credential for private repositories |
| 63 | +4. Click **Save** |
| 64 | + |
| 65 | +:::warning Security Notice |
| 66 | +Third-party plugin repositories are added at your own risk. Plugins can contain code that executes on your server. Only add repositories from sources you trust. |
| 67 | +::: |
| 68 | + |
| 69 | +## Repository Sync |
| 70 | + |
| 71 | +Repositories sync automatically from their Git source. If a repository shows "Not Synced": |
| 72 | + |
| 73 | +1. Open the repository |
| 74 | +2. Click **Sync Repository** |
| 75 | +3. Wait for the sync to complete |
| 76 | + |
| 77 | +The sync status shows: |
| 78 | +- **Synced** - Repository is up to date |
| 79 | +- **Not Synced** - Repository needs to sync (may show commits ahead/behind) |
| 80 | + |
| 81 | +## Credentials |
| 82 | + |
| 83 | +For private Git repositories, you can save credentials: |
| 84 | + |
| 85 | +1. Go to **Settings** > **Plugin Repositories** |
| 86 | +2. Click **Credentials** in the left menu |
| 87 | +3. Click **Add** to create a new credential |
| 88 | +4. Enter the username and password/token |
| 89 | +5. Save the credential |
| 90 | + |
| 91 | +You can then select this credential when adding or editing a repository. |
| 92 | + |
| 93 | +## Plugin Types |
| 94 | + |
| 95 | +### Game Configurations |
| 96 | + |
| 97 | +Game plugins contain complete server configurations including: |
| 98 | +- Executable paths and command lines |
| 99 | +- Default ports and query settings |
| 100 | +- Steam integration (App ID, anonymous login settings) |
| 101 | +- File management templates |
| 102 | +- Default scripts and variables |
| 103 | + |
| 104 | +### Docker Blueprints |
| 105 | + |
| 106 | +Docker plugins contain container configurations including: |
| 107 | +- Image name and registry settings |
| 108 | +- Port mappings |
| 109 | +- Volume mounts |
| 110 | +- Environment variables |
| 111 | +- Resource limits |
| 112 | + |
| 113 | +### Scripts |
| 114 | + |
| 115 | +Script plugins can be: |
| 116 | +- **Game Scripts** - Scripts that run for game server events |
| 117 | +- **Docker Scripts** - Scripts that run for Docker container events |
| 118 | +- **Script Modules** - Reusable script libraries |
| 119 | + |
| 120 | +### Themes |
| 121 | + |
| 122 | +Theme plugins customize the control panel appearance with custom CSS and styling. |
| 123 | + |
| 124 | +### Languages |
| 125 | + |
| 126 | +Language plugins add translations for the control panel interface. |
0 commit comments