Class StartSubCommand

java.lang.Object
com.karasu256.one_shot_glory.commands.subcommands.StartSubCommand
All Implemented Interfaces:
SubCommand

public class StartSubCommand extends Object implements SubCommand
プラグインの機能を開始するサブコマンドを実装するクラス

このクラスはプラグインの機能を有効化し、設定を更新して ゲームの初期化処理を実行します。

  • Constructor Summary

    Constructors
    Constructor
    Description
    StartSubCommandクラスのデフォルトコンストラクタ
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    execute(org.bukkit.command.CommandSender sender, String[] args)
    プラグインの機能を開始するコマンドを実行します
    tabComplete(org.bukkit.command.CommandSender sender, String[] args)
    このサブコマンドのタブ補完を提供するメソッド

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StartSubCommand

      public StartSubCommand()
      StartSubCommandクラスのデフォルトコンストラクタ

      このクラスサブコマンドの実装を初期化します。

  • Method Details

    • execute

      public boolean execute(org.bukkit.command.CommandSender sender, String[] args)
      プラグインの機能を開始するコマンドを実行します

      このメソッドは以下の操作を行います:

      • ユーザーの権限を確認
      • GameSystemUtilsのstartGameメソッドを呼び出し
      Specified by:
      execute in interface SubCommand
      Parameters:
      sender - コマンドを実行した送信者
      args - コマンドの引数(このコマンドでは使用しません)
      Returns:
      コマンドの実行が成功した場合はtrue、失敗した場合はfalse
    • tabComplete

      public List<String> tabComplete(org.bukkit.command.CommandSender sender, String[] args)
      このサブコマンドのタブ補完を提供するメソッド

      このコマンドには補完候補がないため、常に空のリストを返します。

      Specified by:
      tabComplete in interface SubCommand
      Parameters:
      sender - タブ補完を要求した送信者
      args - 現在入力されている引数
      Returns:
      空の補完候補リスト