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

  • Method Details

    • hasVerboseOutput

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

      public boolean hasSilentLogs()
      Returns:
      Whether silent logs is enabled
    • 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
    • getNamespace

      public String getNamespace()
      Returns:
      The default namespace used to register commands
    • isNetworkingEnabled

      public boolean isNetworkingEnabled()
      Returns:
      Whether networking should be enabled
    • makeNetworkingExceptionsWarnings

      public boolean makeNetworkingExceptionsWarnings()
      Returns:
      Whether networking exceptions are logged as warnings