From 320a7595f6c0f3fffab4e1cd3ca3dc5d280a5517 Mon Sep 17 00:00:00 2001 From: dfsek Date: Mon, 6 Sep 2021 13:40:46 -0700 Subject: [PATCH] create CommandRegistrationEvent --- .../platform/CommandRegistrationEvent.java | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 common/api/src/main/java/com/dfsek/terra/api/event/events/platform/CommandRegistrationEvent.java 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; + } +}