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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.plugin.java.JavaPluginbooleanbooleanMethods inherited from class dev.jorel.commandapi.InternalConfig
getDispatcherFile, getMissingImplementationMessage, getNamespace, getNBTContainerClass, getNBTContainerConstructor, hasSilentLogs, hasVerboseOutput, lateInitializeNBT, shouldSkipSenderProxy, shouldUseLatestNMSVersion
-
Constructor Details
-
InternalBukkitConfig
Creates anInternalBukkitConfigfrom aCommandAPIBukkitConfig- Parameters:
config- The configuration to use to set up this internal configuration
-
-
Method Details
-
getPlugin
public org.bukkit.plugin.java.JavaPlugin getPlugin()- Returns:
- The
JavaPluginthat is loading the CommandAPI
-
shouldHookPaperReload
public boolean shouldHookPaperReload()- Returns:
- Whether the CommandAPI should hook into Paper's
ServerResourcesReloadedEventwhen available to perform the CommandAPI's custom datapack reload when/minecraft:reloadis run.
-
skipReloadDatapacks
public boolean skipReloadDatapacks()- Returns:
- Whether the CommandAPI should skip reloading datapacks when the server has finished loading
-