diff --git a/common/api/src/main/java/com/dfsek/terra/api/event/events/platform/CommandRegistrationEvent.java b/common/api/src/main/java/com/dfsek/terra/api/event/events/platform/CommandRegistrationEvent.java new file mode 100644 index 000000000..aa06223a7 --- /dev/null +++ b/common/api/src/main/java/com/dfsek/terra/api/event/events/platform/CommandRegistrationEvent.java @@ -0,0 +1,22 @@ +package com.dfsek.terra.api.event.events.platform; + +import cloud.commandframework.CommandManager; + +import com.dfsek.terra.api.entity.CommandSender; +import com.dfsek.terra.api.event.events.Event; + + +/** + * Called when commands should be registered. Listen to this event to register your own commands. + */ +public class CommandRegistrationEvent implements Event { + private final CommandManager manager; + + public CommandRegistrationEvent(CommandManager manager) { + this.manager = manager; + } + + public CommandManager getManager() { + return manager; + } +}