mirror of
https://github.com/aikar/commands.git
synced 2026-05-31 06:11:55 +00:00
Let's try oracle jdk since travis has issues with openjdk
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@ dist: trusty
|
||||
jdk:
|
||||
- oraclejdk8
|
||||
- openjdk8
|
||||
- openjdk11
|
||||
- oraclejdk11
|
||||
git:
|
||||
submodules: false
|
||||
before_install:
|
||||
|
||||
@@ -77,12 +77,12 @@ public class TestCommandManager extends CommandManager<
|
||||
|
||||
public void unregisterCommand(BaseCommand command) {
|
||||
for (Map.Entry<String, RootCommand> entry : command.registeredCommands.entrySet()) {
|
||||
String jdaCommandName = entry.getKey().toLowerCase();
|
||||
TestRootCommand jdaCommand = (TestRootCommand) entry.getValue();
|
||||
jdaCommand.getSubCommands().values().removeAll(command.subCommands.values());
|
||||
if (jdaCommand.isRegistered && jdaCommand.getSubCommands().isEmpty()) {
|
||||
jdaCommand.isRegistered = false;
|
||||
commands.remove(jdaCommandName);
|
||||
String commandName = entry.getKey().toLowerCase();
|
||||
TestRootCommand cmd = (TestRootCommand) entry.getValue();
|
||||
cmd.getSubCommands().values().removeAll(command.subCommands.values());
|
||||
if (cmd.isRegistered && cmd.getSubCommands().isEmpty()) {
|
||||
cmd.isRegistered = false;
|
||||
commands.remove(commandName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user