Skip to content

Commit

Permalink
Remove unneeded arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
esotericenderman committed Aug 4, 2024
1 parent 59bd59c commit 8e87bac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public String apply(CustomArgumentInfo<String> info) throws CustomArgumentExcept
Bukkit.getLogger().info(selectedLanguage);

if (!languages.contains(selectedLanguage)) {
Component errorMessage = languageManager.getMessage(Message.UNKNOWN_LANGUAGE, info.sender(), true, new Object[] {selectedLanguage});
Component errorMessage = languageManager.getMessage(Message.UNKNOWN_LANGUAGE, info.sender(), selectedLanguage);
throw CustomArgumentException.fromAdventureComponent(errorMessage);
}

Expand Down

0 comments on commit 8e87bac

Please sign in to comment.