Package dev.jorel.commandapi
Class InternalConfig
java.lang.Object
dev.jorel.commandapi.InternalConfig
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 Summary
ConstructorsConstructorDescriptionInternalConfig(CommandAPIConfig<?> config) Creates anInternalConfigfrom aCommandAPIConfig -
Method Summary
Modifier and TypeMethodDescriptionClass<?> booleanbooleanvoidlateInitializeNBT(Class<?> nbtContainerClass, Function<Object, ?> nbtContainerConstructor) booleanbooleanshouldSkipSenderProxy(String commandName) boolean
-
Constructor Details
-
InternalConfig
Creates anInternalConfigfrom aCommandAPIConfig- 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
-
shouldBeLenientForMinorVersions
public boolean shouldBeLenientForMinorVersions()- Returns:
- Whether the CommandAPI should assume that minor versions of officially unsupported versions do not cause incompatibilities
-
getMissingImplementationMessage
- Returns:
- The message to display if a command executor does not have an implementation for a given type
-
getDispatcherFile
-
shouldSkipSenderProxy
- Parameters:
commandName- A command where sender proxying should be skipped- Returns:
- Whether sender proxying should be skipped for a given command
-
getNBTContainerClass
- Returns:
- The NBT Tag Compound implementation class
-
getNBTContainerConstructor
-
lateInitializeNBT
-
getNamespace
- Returns:
- The default namespace used to register commands
-