Class One_Shot_Glory

java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
com.karasu256.one_shot_glory.One_Shot_Glory
All Implemented Interfaces:
io.papermc.paper.plugin.lifecycle.event.LifecycleEventOwner, org.bukkit.command.CommandExecutor, org.bukkit.command.TabCompleter, org.bukkit.command.TabExecutor, org.bukkit.plugin.Plugin

public final class One_Shot_Glory extends org.bukkit.plugin.java.JavaPlugin
One-Shot-Gloryプラグインのメインクラス

このクラスはOne-Shot-Gloryプラグインのエントリーポイントとなり、 プラグインの初期化、設定ファイルの管理、および各種機能の制御を行います。

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static @NotNull org.bukkit.configuration.file.FileConfiguration
    プラグインの設定情報を保持する設定オブジェクト
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    言語マネージャーを取得するメソッド
    static org.bukkit.plugin.Plugin
    プラグインのインスタンスを取得するためのユーティリティメソッド
    void
    設定ファイルを再読み込みするメソッド
    void
    プラグインが無効化された際に呼び出されるメソッド
    void
    プラグインが有効化された際に呼び出されるメソッド
    void
    設定ファイルを保存するメソッド

    Methods inherited from class org.bukkit.plugin.java.JavaPlugin

    getClassLoader, getCommand, getConfig, getDataFolder, getDefaultBiomeProvider, getDefaultWorldGenerator, getDescription, getFile, getLifecycleManager, getLogger, getPlugin, getPluginLoader, getPluginMeta, getProvidingPlugin, getResource, getServer, getTextResource, init, init, isEnabled, isNaggable, onCommand, onLoad, onTabComplete, reloadConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toString

    Methods inherited from class org.bukkit.plugin.PluginBase

    equals, getName, hashCode

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.bukkit.plugin.Plugin

    getComponentLogger, getDataPath, getLog4JLogger, getSLF4JLogger
  • Field Details

    • config

      @NotNull public static @NotNull org.bukkit.configuration.file.FileConfiguration config
      プラグインの設定情報を保持する設定オブジェクト
  • Constructor Details

    • One_Shot_Glory

      public One_Shot_Glory()
  • Method Details

    • onEnable

      public void onEnable()
      プラグインが有効化された際に呼び出されるメソッド

      データフォルダの作成、設定ファイルの初期化、言語マネージャーの初期化、 およびコマンドの登録などの初期化処理を行います。

      Specified by:
      onEnable in interface org.bukkit.plugin.Plugin
      Overrides:
      onEnable in class org.bukkit.plugin.java.JavaPlugin
    • loadConfig

      public void loadConfig()
      設定ファイルを再読み込みするメソッド

      設定ファイルの内容を最新の状態に更新します。

    • onDisable

      public void onDisable()
      プラグインが無効化された際に呼び出されるメソッド

      イベントリスナーの登録解除や設定ファイルの保存など、 プラグインのシャットダウン処理を行います。

      Specified by:
      onDisable in interface org.bukkit.plugin.Plugin
      Overrides:
      onDisable in class org.bukkit.plugin.java.JavaPlugin
    • saveConfig

      public void saveConfig()
      設定ファイルを保存するメソッド

      現在のメモリ上の設定内容をファイルに保存します。 保存に失敗した場合はエラーログを出力します。

      Specified by:
      saveConfig in interface org.bukkit.plugin.Plugin
      Overrides:
      saveConfig in class org.bukkit.plugin.java.JavaPlugin
    • getLanguageManager

      public LanguageManager getLanguageManager()
      言語マネージャーを取得するメソッド
      Returns:
      言語マネージャーのインスタンス
    • getPlugin

      public static org.bukkit.plugin.Plugin getPlugin()
      プラグインのインスタンスを取得するためのユーティリティメソッド
      Returns:
      プラグインのインスタンス