Class LifecycleEvents
java.lang.Object
io.papermc.paper.plugin.lifecycle.event.types.LifecycleEvents
Holds various types of lifecycle events for
use when creating event handler configurations
in
LifecycleEventManager
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final LifecycleEventType.Prioritizable
<LifecycleEventOwner, ReloadableRegistrarEvent<Commands>> This event is for registering commands to the server's brigadier command system.static final TagEventTypeProvider
These events are for registering tags to the server's tag system. -
Method Summary
-
Field Details
-
COMMANDS
public static final LifecycleEventType.Prioritizable<LifecycleEventOwner,ReloadableRegistrarEvent<Commands>> COMMANDSThis event is for registering commands to the server's brigadier command system. You can register a handler for this event inJavaPlugin.onEnable()
orPluginBootstrap.bootstrap(BootstrapContext)
.- See Also:
-
TAGS
These events are for registering tags to the server's tag system. You can register a handler for these events only inPluginBootstrap.bootstrap(BootstrapContext)
.
-