Interface SubCommand
- All Known Implementing Classes:
ConfigSubCommand,HelpSubCommand,ReloadConfigSubCommand,ReloadSubCommand,StartSubCommand,StopSubCommand
public interface SubCommand
One-Shot-Gloryプラグインのサブコマンド機能を定義するインターフェース
このインターフェースはコマンド実行とタブ補完の機能を提供します。 プラグインの各サブコマンドはこのインターフェースを実装する必要があります。
-
Method Summary
-
Method Details
-
execute
サブコマンドを実行するメソッドコマンド送信者および引数を受け取り、適切な処理を実行します。
- Parameters:
sender- コマンドを実行した送信者args- コマンドの引数- Returns:
- コマンドの実行が成功した場合はtrue、失敗した場合はfalse
-
tabComplete
サブコマンドのタブ補完を提供するメソッド現在の入力状態に基づいて、コマンドの補完候補リストを返します。
- Parameters:
sender- タブ補完を要求した送信者args- 現在入力されている引数- Returns:
- 補完候補の文字列リスト
-