mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-10-27 14:30:23 +00:00
create CommandRegistrationEvent
This commit is contained in:
1 parent
0706a4d0b7
commit
320a7595f6
1 file changed
+22
+22
@@ -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<CommandSender> manager;
|
||||||
|
|
||||||
|
public CommandRegistrationEvent(CommandManager<CommandSender> manager) {
|
||||||
|
this.manager = manager;
|
||||||
|
}
|
||||||
|
|
||||||
|
public CommandManager<CommandSender> getManager() {
|
||||||
|
return manager;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in new issue
Block a user