Class InternalConfig

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

public class InternalConfig extends Object
Configuration wrapper class. 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

    • InternalConfig

      @Deprecated(forRemoval=true) public InternalConfig(boolean verbose)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates an InternalConfig
      Parameters:
      verbose - whether verbose logging should be enabled or not
    • InternalConfig

      public InternalConfig(CommandAPIConfig config)
      Parameters:
      config - The configuration to use to set up this internal configuration
  • Method Details

    • hasVerboseOutput

      public boolean hasVerboseOutput()
      Returns:
      Whether verbose output is enabled
    • hasSilentLogs

      public boolean hasSilentLogs()
      Returns:
      Whether silent logs is enabled
    • shouldUseLatestNMSVersion

      public boolean shouldUseLatestNMSVersion()
      Returns:
      Whether the CommandAPI should use the latest available NMS version
    • getMissingImplementationMessage

      public String getMissingImplementationMessage()
      Returns:
      The message to display if a command executor does not have an implementation for a given type
    • getDispatcherFile

      public File getDispatcherFile()
      Returns:
      The File which should be used to create a JSON representation of Brigadier's command tree
    • getPluginsToConvert

      public Set<Map.Entry<org.bukkit.plugin.java.JavaPlugin,String[]>> getPluginsToConvert()
      Returns:
      A set of plugins and a list of commands to convert
    • shouldSkipSenderProxy

      public boolean shouldSkipSenderProxy(org.bukkit.plugin.Plugin plugin)
      Parameters:
      plugin - A plugin where sender proxying should be skipped
      Returns:
      Whether sender proxying should be skipped for a given plugin
    • 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
    • getCommandsToConvert

      public List<String> getCommandsToConvert()
      Returns:
      A list of commands to convert to Vanilla-compatible commands
    • 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
    • getCustomNMS

      public NMS<?> getCustomNMS()