Package dev.jorel.commandapi
Class InternalBukkitConfig
java.lang.Object
dev.jorel.commandapi.InternalConfig
dev.jorel.commandapi.InternalBukkitConfig
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 Summary
ConstructorsConstructorDescriptionInternalBukkitConfig(CommandAPIBukkitConfig<? extends CommandAPIBukkitConfig<?>> config) Creates anInternalBukkitConfigfrom aCommandAPIBukkitConfig -
Method Summary
Modifier and TypeMethodDescriptionbooleanClass<?> voidlateInitializeNBT(Class<?> nbtContainerClass, Function<Object, ?> nbtContainerConstructor) booleanshouldSkipSenderProxy(String commandName) booleanMethods inherited from class dev.jorel.commandapi.InternalConfig
getDispatcherFile, getMissingImplementationMessage, getNamespace, hasSilentLogs, hasVerboseOutput, isNetworkingEnabled, makeNetworkingExceptionsWarnings
-
Constructor Details
-
InternalBukkitConfig
Creates anInternalBukkitConfigfrom aCommandAPIBukkitConfig- Parameters:
config- The configuration to use to set up this internal configuration
-
-
Method Details
-
getPluginName
- Returns:
- The name of the
JavaPluginthat 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
- 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
-