Contents
Class MacroCommandPlugin
java.lang.Object
com.hypixel.hytale.server.core.plugin.PluginBase
com.hypixel.hytale.server.core.plugin.JavaPlugin
com.hypixel.hytale.builtin.commandmacro.MacroCommandPlugin
- All Implemented Interfaces:
CommandOwner
This plugin handles macro command assets and execution.
Macro commands are commands that are generated from an asset file, that then
execute multiple other commands using the arguments provided in the macro.
Macros whose Name contains spaces define subcommand paths. All macros
sharing the same first token (e.g. "kit" and "kit magic") are
combined into a single command tree under that root, with intermediate parents
filled by MacroCommandCollection when no bare-root macro is defined.
-
Field Summary
Fields inherited from class PluginBase
METRICS_REGISTRY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MacroCommandPluginget()voidloadCommandMacroAsset(LoadedAssetsEvent<String, MacroCommandBuilder, DefaultAssetMap<String, MacroCommandBuilder>> event) Methods inherited from class JavaPlugin
getClassLoader, getFile, getTypeMethods inherited from class PluginBase
getAssetRegistry, getBasePermission, getChunkStoreRegistry, getClientFeatureRegistry, getCodecRegistry, getCodecRegistry, getCodecRegistry, getCommandRegistry, getDataDirectory, getEntityRegistry, getEntityStoreRegistry, getEventRegistry, getIdentifier, getLogger, getManifest, getName, getState, getTaskRegistry, isDisabled, isEnabled, preLoad
-
Constructor Details
-
MacroCommandPlugin
-
-
Method Details
-
get
-
loadCommandMacroAsset
public void loadCommandMacroAsset(@Nonnull LoadedAssetsEvent<String, MacroCommandBuilder, DefaultAssetMap<String, MacroCommandBuilder>> event)
-