A simple BungeeCommand Shortcut create plugin. BungeeCordのコマンドのショートカットを作ろう!
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.
config.ymlBungeeShortcut.jar from the releases pageplugins folderplugins/BungeeShortcut/config.ymlEdit plugins/BungeeShortcut/config.yml:
shortcuts:
lobby: "server lobby"
hub: "server hub"
spawn: "warp spawn"
home: "essentials:home"
Format:
lobby)"server lobby")Example:
/lobby → executes /server lobby/hub → executes /server hub/spawn → executes /warp spawn| 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> |
| 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/bungeeshortcut → suggests help and reload (if you have permission)mvn clean package
target/BungeeShortcut-1.0.jarWhen a player executes a shortcut command (e.g., /lobby), the plugin:
bungeeshortcut.shortcut.lobby)/server lobby) using BungeeCord's command dispatcherconfig.yml, use /bungeeshortcut reload to apply changes without restarting/lobby player1 → executes /server lobby player1BungeeShortcutは、設定ファイルでコマンドのショートカットを簡単に作成できるBungeeCordプラグインです。プログラムでコマンドを登録する必要がなく、config.ymlにショートカットを追加するだけですぐに使用できます。
config.ymlでコマンドのショートカットを作成BungeeShortcut.jarをダウンロードpluginsフォルダに配置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 - 設定をリロードする権限/bungeeshortcut → helpとreloadを提案(権限がある場合)mvn clean package
target/BungeeShortcut-1.0.jarにありますプレイヤーがショートカットコマンド(例: /lobby)を実行すると、プラグインは:
bungeeshortcut.shortcut.lobby)を持っているか確認/server lobby)を実行config.ymlを変更した後は、/bungeeshortcut reloadを使用してサーバーを再起動せずに変更を適用できます/lobby player1 → /server lobby player1を実行This project is licensed under the MIT License.
koirdsuzu