Skip to content

Commit

Permalink
Fixes flipped condition for getGlobalCommands and getServerCommands
Browse files Browse the repository at this point in the history
  • Loading branch information
ShindouMihou committed Aug 31, 2022
1 parent 3e3da0f commit a83042b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public interface NexusCommandManager {
default Set<NexusCommand> getGlobalCommands() {
Set<NexusCommand> commands = new HashSet<>();
for (NexusCommand command : getCommands()) {
if (!command.isServerCommand()) continue;
if (command.isServerCommand()) continue;
commands.add(command);
}

Expand All @@ -48,7 +48,7 @@ default Set<NexusCommand> getGlobalCommands() {
default Set<NexusCommand> getServerCommands() {
Set<NexusCommand> commands = new HashSet<>();
for (NexusCommand command : getCommands()) {
if (command.isServerCommand()) continue;
if (!command.isServerCommand()) continue;
commands.add(command);
}

Expand Down

0 comments on commit a83042b

Please sign in to comment.