Class StopSubCommand
java.lang.Object
com.karasu256.one_shot_glory.commands.subcommands.StopSubCommand
- All Implemented Interfaces:
SubCommand
プラグインの機能を停止するサブコマンドを実装するクラス
このクラスはプラグインの全機能を無効化し、設定を更新して イベントハンドラの登録を解除します。
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
StopSubCommand
public StopSubCommand()StopSubCommandクラスのデフォルトコンストラクタこのクラスサブコマンドの実装を初期化します。
-
-
Method Details
-
execute
プラグインの機能を停止するコマンドを実行しますこのメソッドは以下の操作を行います:
- ユーザーの権限を確認
- GameSystemUtilsのstopGameメソッドを呼び出し
- Specified by:
executein interfaceSubCommand- Parameters:
sender- コマンドを実行した送信者args- コマンドの引数(このコマンドでは使用しません)- Returns:
- コマンドの実行が成功した場合はtrue、失敗した場合はfalse
-
tabComplete
このサブコマンドのタブ補完を提供するメソッドこのコマンドには補完候補がないため、常に空のリストを返します。
- Specified by:
tabCompletein interfaceSubCommand- Parameters:
sender- タブ補完を要求した送信者args- 現在入力されている引数- Returns:
- 空の補完候補リスト
-