Class InternalBukkitConfig

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

public abstract 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

    • getPluginName

      public String getPluginName()
      Returns:
      The name of the JavaPlugin that is loading the CommandAPI
    • fallbackToLatestNMS

      public boolean fallbackToLatestNMS()
      Returns:
      Whether the CommandAPI should fall back to the latest version if no specific implementation for the current version was found
    • skipReloadDatapacks

      public boolean skipReloadDatapacks()
      Returns:
      Whether the CommandAPI should skip reloading datapacks when the server has finished loading
    • shouldSkipSenderProxy

      public boolean shouldSkipSenderProxy(String commandName)
      Parameters:
      commandName - A command where sender proxying should be skipped
      Returns:
      Whether sender proxying should be skipped for a given command
    • getNBTContainerClass

      public Class<?> getNBTContainerClass()
      Returns:
      The NBT Tag Compound implementation class
    • getNBTContainerConstructor

      public Function<Object,?> getNBTContainerConstructor()
      Returns:
      A function that takes in an Object (NMS NBTTagCompound) and returns an implementation of an NBT Tag Compound
    • lateInitializeNBT

      public void lateInitializeNBT(Class<?> nbtContainerClass, Function<Object,?> nbtContainerConstructor)