This commit is contained in:
ajgeiss0702
2021-07-29 14:28:09 -07:00
parent 07721809fb
commit bbf644109b
8 changed files with 15 additions and 23 deletions
@@ -20,6 +20,7 @@ public class BaseCommand implements IBaseCommand {
return null;
}
@SuppressWarnings("unused")
@Override
public ImmutableList<ISubCommand> getSubCommands() {
return null;
@@ -35,6 +36,7 @@ public class BaseCommand implements IBaseCommand {
return null;
}
@SuppressWarnings("unused")
@Override
public void addSubCommand(ISubCommand subCommand) {
@@ -14,12 +14,11 @@ import us.ajg0702.utils.common.TimeUtils;
import java.util.*;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit;
public class QueueManagerImpl implements QueueManager {
private List<QueueServer> servers = new ArrayList<>();
private final List<QueueServer> servers = new ArrayList<>();
private final QueueMain main;
private final Messages msgs;
@@ -283,7 +282,6 @@ public class QueueManagerImpl implements QueueManager {
@Override
public void sendMessages() {
if(servers == null) return;
try {
for(QueueServer server : servers) {
for(QueuePlayer queuePlayer : server.getQueue()) {
@@ -109,6 +109,7 @@ public class TaskManager {
return scheduleAtFixedRate(executor, command, 0, period, unit);
}
@SuppressWarnings("UnusedReturnValue")
public ScheduledFuture<?> runLater(Runnable runnable, long delay, TimeUnit unit) {
return executor.schedule(runnable, delay, unit);
}