clean some stuff up
This commit is contained in:
@@ -47,11 +47,6 @@ public class LeaveCommand extends BaseCommand {
|
||||
return main.getMessages();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addSubCommand(ISubCommand subCommand) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(ICommandSender sender, String[] args) {
|
||||
System.out.println("leave command");
|
||||
|
||||
@@ -11,7 +11,6 @@ import us.ajg0702.queue.common.QueueMain;
|
||||
import us.ajg0702.utils.common.Messages;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
public class ListCommand extends BaseCommand {
|
||||
@@ -47,11 +46,6 @@ public class ListCommand extends BaseCommand {
|
||||
return main.getMessages();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addSubCommand(ISubCommand subCommand) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(ICommandSender sender, String[] args) {
|
||||
if(!checkPermission(sender)) return;
|
||||
@@ -63,9 +57,7 @@ public class ListCommand extends BaseCommand {
|
||||
|
||||
|
||||
Component m = main.getMessages().getComponent("commands.listqueues.header");
|
||||
boolean none = true;
|
||||
for(QueueServer s : main.getQueueManager().getServers()) {
|
||||
none = false;
|
||||
String color = "&a";
|
||||
if(!s.isOnline()) {
|
||||
color = "&c";
|
||||
|
||||
@@ -5,7 +5,6 @@ import net.kyori.adventure.text.Component;
|
||||
import us.ajg0702.queue.api.commands.ICommandSender;
|
||||
import us.ajg0702.queue.api.commands.ISubCommand;
|
||||
import us.ajg0702.queue.commands.BaseCommand;
|
||||
import us.ajg0702.queue.commands.SubCommand;
|
||||
import us.ajg0702.queue.common.QueueMain;
|
||||
import us.ajg0702.utils.common.Messages;
|
||||
|
||||
@@ -16,7 +15,7 @@ import java.util.Locale;
|
||||
|
||||
public class ManageCommand extends BaseCommand {
|
||||
|
||||
QueueMain main;
|
||||
final QueueMain main;
|
||||
|
||||
public ManageCommand(QueueMain main) {
|
||||
this.main = main;
|
||||
@@ -36,7 +35,7 @@ public class ManageCommand extends BaseCommand {
|
||||
return ImmutableList.of("ajq");
|
||||
}
|
||||
|
||||
List<ISubCommand> subCommands = new ArrayList<>();
|
||||
final List<ISubCommand> subCommands = new ArrayList<>();
|
||||
|
||||
@Override
|
||||
public ImmutableList<ISubCommand> getSubCommands() {
|
||||
|
||||
@@ -5,7 +5,6 @@ import net.kyori.adventure.text.Component;
|
||||
import net.kyori.adventure.text.format.NamedTextColor;
|
||||
import org.spongepowered.configurate.ConfigurateException;
|
||||
import us.ajg0702.queue.api.commands.ICommandSender;
|
||||
import us.ajg0702.queue.api.commands.ISubCommand;
|
||||
import us.ajg0702.queue.commands.SubCommand;
|
||||
import us.ajg0702.queue.common.QueueMain;
|
||||
import us.ajg0702.utils.common.Messages;
|
||||
@@ -15,7 +14,7 @@ import java.util.List;
|
||||
|
||||
public class Reload extends SubCommand {
|
||||
|
||||
QueueMain main;
|
||||
final QueueMain main;
|
||||
public Reload(QueueMain main) {
|
||||
this.main = main;
|
||||
}
|
||||
@@ -40,11 +39,6 @@ public class Reload extends SubCommand {
|
||||
return main.getMessages();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addSubCommand(ISubCommand subCommand) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(ICommandSender sender, String[] args) {
|
||||
if(!checkPermission(sender)) return;
|
||||
|
||||
@@ -2,10 +2,7 @@ package us.ajg0702.queue.commands.commands.manage;
|
||||
|
||||
import com.google.common.collect.ImmutableList;
|
||||
import net.kyori.adventure.text.Component;
|
||||
import net.kyori.adventure.text.format.NamedTextColor;
|
||||
import org.spongepowered.configurate.ConfigurateException;
|
||||
import us.ajg0702.queue.api.commands.ICommandSender;
|
||||
import us.ajg0702.queue.api.commands.ISubCommand;
|
||||
import us.ajg0702.queue.commands.SubCommand;
|
||||
import us.ajg0702.queue.common.QueueMain;
|
||||
import us.ajg0702.utils.common.Messages;
|
||||
@@ -15,7 +12,7 @@ import java.util.List;
|
||||
|
||||
public class Tasks extends SubCommand {
|
||||
|
||||
QueueMain main;
|
||||
final QueueMain main;
|
||||
public Tasks(QueueMain main) {
|
||||
this.main = main;
|
||||
}
|
||||
@@ -40,11 +37,6 @@ public class Tasks extends SubCommand {
|
||||
return main.getMessages();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addSubCommand(ISubCommand subCommand) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(ICommandSender sender, String[] args) {
|
||||
if(!checkPermission(sender)) return;
|
||||
|
||||
@@ -49,11 +49,6 @@ public class QueueCommand extends BaseCommand {
|
||||
return main.getMessages();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addSubCommand(ISubCommand subCommand) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(ICommandSender sender, String[] args) {
|
||||
if(!checkPermission(sender)) return;
|
||||
|
||||
Reference in New Issue
Block a user