Remove cloud framework

This commit is contained in:
Ryder Belserion 2024-02-19 21:54:30 -05:00
parent 31fb2920c9
commit 71d086cb6e
No known key found for this signature in database
1 changed files with 0 additions and 37 deletions

View File

@ -1,37 +0,0 @@
package com.badbones69.crazyauctions.common.api.engine.command;
import cloud.commandframework.Command;
import cloud.commandframework.CommandManager;
import cloud.commandframework.meta.CommandMeta;
import com.ryderbelserion.cluster.utils.AdvUtils;
import net.kyori.adventure.audience.Audience;
import org.jetbrains.annotations.NotNull;
public abstract class CommandHandler {
@NotNull
public abstract CommandManager<Audience> getManager();
@NotNull
public abstract Command.Builder<Audience> getRoot();
//TODO() Add exception handler.
//TODO() Add register command method
//TODO() Add a method to get the root command.
//TODO() Add a way to expose registered commands, args etc for the help generator.
private Command.Builder<Audience> root() {
return getManager().commandBuilder("crazyauctions", "ca", "ah")
.permission("crazyauctions.access")
.meta(CommandMeta.DESCRIPTION, "CrazyAuctions command. /crazyauctions help")
.handler(context -> {
context.getSender().sendMessage(AdvUtils.parse("<red>This is the base command."));
//TODO() Add some type of wrapper to open gui's
});
}
protected void register() {
}
}