Class CommandAPIBukkitConfig

All Implemented Interfaces:
ChainableBuilder<CommandAPIBukkitConfig>

public class CommandAPIBukkitConfig extends CommandAPIConfig<CommandAPIBukkitConfig>
A class that contains information needed to configure the CommandAPI on Bukkit-based servers.
  • Constructor Details

    • CommandAPIBukkitConfig

      public CommandAPIBukkitConfig(org.bukkit.plugin.java.JavaPlugin plugin)
      Creates a new CommandAPIBukkitConfig object. Variables in this constructor are required to load the CommandAPI on Bukkit properly.
      Parameters:
      plugin - The JavaPlugin that is loading the CommandAPI This is used when registering events.
  • Method Details

    • shouldHookPaperReload

      public CommandAPIBukkitConfig shouldHookPaperReload(boolean hooked)
      Sets the CommandAPI to hook into Paper's ServerResourcesReloadedEvent when available if true. This helps CommandAPI commands to work in datapacks after /minecraft:reload is run.
      Parameters:
      hooked - whether the CommandAPI should hook into Paper's ServerResourcesReloadedEvent
      Returns:
      this CommandAPIBukkitConfig
    • instance

      public CommandAPIBukkitConfig instance()