Skip to content

Commit

Permalink
removed unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
NonSwag committed Sep 16, 2023
1 parent 281c267 commit 17bdd95
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,6 @@ default boolean isCommandRegistered(String literal) {
return getCommand(literal).isPresent();
}

/**
* Check whether both commands match
*
* @param first the first command
* @param second the second command
* @return whether the commands match
*/
boolean matches(C first, C second);

/**
* Update all commands
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,6 @@ public Optional<Command> getCommand(String literal) {
return Optional.ofNullable(Bukkit.getCommandMap().getCommand(literal));
}

@Override
public boolean matches(Command first, Command second) {
if (first.equals(second)) return true;
if (!first.getClass().equals(second.getClass())) return false;
if (!first.getName().equals(second.getName())) return false;
return first.getLabel().equals(second.getLabel());
}

@Override
public void updateCommands() {
Bukkit.getOnlinePlayers().forEach(Player::updateCommands);
Expand Down

0 comments on commit 17bdd95

Please sign in to comment.