Begin fixing command system

This commit is contained in:
spacerocket62
2022-01-26 21:28:30 -08:00
parent edef4d8558
commit 587ea8f352
27 changed files with 130 additions and 298 deletions

View File

@ -5,12 +5,10 @@ import dev.plex.command.PlexCommand;
import dev.plex.command.annotation.CommandParameters;
import dev.plex.command.annotation.CommandPermissions;
import dev.plex.command.exception.CommandArgumentException;
import dev.plex.command.source.CommandSource;
import dev.plex.command.source.RequiredCommandSource;
import dev.plex.rank.enums.Rank;
import org.bukkit.ChatColor;
import java.util.Arrays;
import java.util.List;
@CommandPermissions(level = Rank.OP, source = RequiredCommandSource.ANY)
@ -21,7 +19,7 @@ public class PlexCMD extends PlexCommand {
}
@Override
public void execute(CommandSource sender, String[] args) {
public Component execute(CommandSender sender, String[] args) {
if (args.length == 0) {
send(ChatColor.LIGHT_PURPLE + "Plex. The long awaited TotalFreedomMod rewrite starts here...");
send(ChatColor.LIGHT_PURPLE + "Plugin version: " + ChatColor.GOLD + "1.0");
@ -47,7 +45,7 @@ public class PlexCMD extends PlexCommand {
}
@Override
public List<String> onTabComplete(CommandSource sender, String[] args) {
public List<String> tabComplete(CommandSender sender, String[] args) {
return List.of("reload");
}
}