Package dev.jorel.commandapi
Class CommandAPIBukkitConfig
java.lang.Object
dev.jorel.commandapi.CommandAPIConfig<CommandAPIBukkitConfig>
dev.jorel.commandapi.CommandAPIBukkitConfig
- All Implemented Interfaces:
ChainableBuilder<CommandAPIBukkitConfig>
A class that contains information needed to configure the CommandAPI on Bukkit-based servers.
-
Constructor Summary
ConstructorsConstructorDescriptionCommandAPIBukkitConfig(org.bukkit.plugin.java.JavaPlugin plugin) Creates a new CommandAPIBukkitConfig object. -
Method Summary
Modifier and TypeMethodDescriptioninstance()shouldHookPaperReload(boolean hooked) Sets the CommandAPI to hook into Paper'sServerResourcesReloadedEventwhen available if true.Methods inherited from class dev.jorel.commandapi.CommandAPIConfig
addSkipSenderProxy, addSkipSenderProxy, dispatcherFile, initializeNBTAPI, missingExecutorImplementationMessage, silentLogs, useLatestNMSVersion, verboseOutput
-
Constructor Details
-
CommandAPIBukkitConfig
public CommandAPIBukkitConfig(org.bukkit.plugin.java.JavaPlugin plugin) Creates a new CommandAPIBukkitConfig object. Variables in this constructor are required to load the CommandAPI on Bukkit properly.- Parameters:
plugin- TheJavaPluginthat is loading the CommandAPI This is used when registering events.
-
-
Method Details
-
shouldHookPaperReload
Sets the CommandAPI to hook into Paper'sServerResourcesReloadedEventwhen available if true. This helps CommandAPI commands to work in datapacks after/minecraft:reloadis run.- Parameters:
hooked- whether the CommandAPI should hook into Paper'sServerResourcesReloadedEvent- Returns:
- this CommandAPIBukkitConfig
-
instance
-