BungeeShortcut
English
Description
BungeeShortcut is a BungeeCord plugin that allows you to create custom command shortcuts via configuration file. Instead of registering commands programmatically, you can easily add shortcuts in config.yml and use them immediately.
Features
- ✅ Create command shortcuts via
config.yml - ✅ Permission system for each shortcut
- ✅ Tab completion support
- ✅ Reload configuration without restarting the server
- ✅ Help command to list all shortcuts
Installation
- Download the latest
BungeeShortcut.jarfrom the releases page - Place it in your BungeeCord
pluginsfolder - Start or reload your BungeeCord server
- The plugin will automatically create
plugins/BungeeShortcut/config.yml
Configuration
Edit plugins/BungeeShortcut/config.yml:
shortcuts:
lobby: "server lobby"
hub: "server hub"
spawn: "warp spawn"
home: "essentials:home"
Format:
- Key: The shortcut command name (e.g.,
lobby) - Value: The actual command to execute (e.g.,
"server lobby")
Example:
/lobby→ executes/server lobby/hub→ executes/server hub/spawn→ executes/warp spawn
Commands
| Command | Description | Permission |
|---|---|---|
/bungeeshortcut or /bsc | Show help and list all shortcuts | Everyone |
/bungeeshortcut help | Show help and list all shortcuts | Everyone |
/bungeeshortcut reload | Reload configuration file | bungeeshortcut.commands.reload |
/<shortcut> | Execute the shortcut command | bungeeshortcut.shortcut.<shortcut> |
Permissions
| Permission | Description | Default |
|---|---|---|
bungeeshortcut.shortcut.<shortcut> | Permission to use a specific shortcut command | op |
bungeeshortcut.commands.help | Permission to use /bungeeshortcut help | Everyone |
bungeeshortcut.commands.reload | Permission to use /bungeeshortcut reload | op |
Examples:
bungeeshortcut.shortcut.lobby- Permission to use/lobbybungeeshortcut.shortcut.hub- Permission to use/hubbungeeshortcut.commands.reload- Permission to reload config
Tab Completion
/bungeeshortcut→ suggestshelpandreload(if you have permission)- Shortcut commands support tab completion (currently returns empty list)
Building from Source
- Clone this repository
- Make sure you have Maven installed
- Run:
mvn clean package
- The compiled JAR will be in
target/BungeeShortcut-1.0.jar
Requirements
- BungeeCord 1.21 or higher
- Java 8 or higher
How It Works
When a player executes a shortcut command (e.g., /lobby), the plugin:
- Checks if the player has the required permission (
bungeeshortcut.shortcut.lobby) - Executes the actual command (
/server lobby) using BungeeCord's command dispatcher - The player receives the same chat messages and results as if they executed the original command directly
Notes
- After modifying
config.yml, use/bungeeshortcut reloadto apply changes without restarting - Shortcut commands can accept arguments, which will be appended to the base command
- Example:
/lobby player1→ executes/server lobby player1
Japanese
説明
BungeeShortcutは、設定ファイルでコマンドのショートカットを簡単に作成できるBungeeCordプラグインです。プログラムでコマンドを登録する必要がなく、config.ymlにショートカットを追加するだけですぐに使用できます。
機能
- ✅
config.ymlでコマンドのショートカットを作成 - ✅ 各ショートカットに権限システム
- ✅ Tab補完サポート
- ✅ サーバー再起動なしで設定をリロード可能
- ✅ すべてのショートカットを一覧表示するヘルプコマンド
インストール方法
- リリースページから最新の
BungeeShortcut.jarをダウンロード - BungeeCordの
pluginsフォルダに配置 - BungeeCordサーバーを起動またはリロード
- プラグインが自動的に
plugins/BungeeShortcut/config.ymlを作成します
設定方法
plugins/BungeeShortcut/config.ymlを編集してください:
shortcuts:
lobby: "server lobby"
hub: "server hub"
spawn: "warp spawn"
home: "essentials:home"
形式:
- キー: ショートカットコマンド名(例:
lobby) - 値: 実際に実行するコマンド(例:
"server lobby")
例:
/lobby→/server lobbyを実行/hub→/server hubを実行/spawn→/warp spawnを実行
コマンド一覧
| コマンド | 説明 | 権限 |
|---|---|---|
/bungeeshortcut または /bsc | ヘルプとすべてのショートカット一覧を表示 | 全員 |
/bungeeshortcut help | ヘルプとすべてのショートカット一覧を表示 | 全員 |
/bungeeshortcut reload | 設定ファイルをリロード | bungeeshortcut.commands.reload |
/<ショートカット名> | ショートカットコマンドを実行 | bungeeshortcut.shortcut.<ショートカット名> |
権限一覧
| 権限 | 説明 | デフォルト |
|---|---|---|
bungeeshortcut.shortcut.<ショートカット名> | 特定のショートカットコマンドを使用する権限 | op |
bungeeshortcut.commands.help | /bungeeshortcut helpを使用する権限 | 全員 |
bungeeshortcut.commands.reload | /bungeeshortcut reloadを使用する権限 | op |
例:
bungeeshortcut.shortcut.lobby-/lobbyを使用する権限bungeeshortcut.shortcut.hub-/hubを使用する権限bungeeshortcut.commands.reload- 設定をリロードする権限
Tab補完
/bungeeshortcut→helpとreloadを提案(権限がある場合)- ショートカットコマンドはTab補完をサポート(現在は空リストを返します)
ソースからビルド
- このリポジトリをクローン
- Mavenがインストールされていることを確認
- 以下のコマンドを実行:
mvn clean package
- コンパイルされたJARは
target/BungeeShortcut-1.0.jarにあります
要件
- BungeeCord 1.21以上
- Java 8以上
動作の仕組み
プレイヤーがショートカットコマンド(例: /lobby)を実行すると、プラグインは:
- プレイヤーが必要な権限(
bungeeshortcut.shortcut.lobby)を持っているか確認 - BungeeCordのコマンドディスパッチャーを使用して実際のコマンド(
/server lobby)を実行 - プレイヤーは元のコマンドを直接実行した場合と同じチャットメッセージと結果を受け取ります
注意事項
config.ymlを変更した後は、/bungeeshortcut reloadを使用してサーバーを再起動せずに変更を適用できます- ショートカットコマンドは引数を受け取ることができ、引数はベースコマンドに追加されます
- 例:
/lobby player1→/server lobby player1を実行
License
This project is licensed under the MIT License.
Author
koirdsuzu
Совместимость
Minecraft: Java Edition
1.21.x1.20.x1.19.x1.18.x1.17.x1.16.x1.15.x1.14.x1.13.x1.12.x1.11.x
Платформы
Поддерживаемые окружения
Сервер
Создатели
Детали
Лицензия:Apache-2.0
Опубликован:2 месяца назад
Обновлён:2 месяца назад
