clean-up
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user