Class InternalBukkitConfig

java.lang.Object
dev.jorel.commandapi.InternalConfig
dev.jorel.commandapi.InternalBukkitConfig

public class InternalBukkitConfig extends InternalConfig
Configuration wrapper class for Bukkit. The config.yml file used by the CommandAPI is only ever read from, nothing is ever written to it. That's why there's only getter methods.
  • Constructor Details

  • Method Details

    • getPlugin

      public org.bukkit.plugin.java.JavaPlugin getPlugin()
      Returns:
      The JavaPlugin that is loading the CommandAPI
    • shouldHookPaperReload

      public boolean shouldHookPaperReload()
      Returns:
      Whether the CommandAPI should hook into Paper's ServerResourcesReloadedEvent when available to perform the CommandAPI's custom datapack reload when /minecraft:reload is run.