Correct lang + replacement mistake with inventory names

This commit is contained in:
Jikoo 2020-04-19 18:04:10 -04:00
parent a1b2df74cc
commit 34e7252d77
4 changed files with 13 additions and 13 deletions

View file

@ -313,6 +313,10 @@ public class OpenInv extends JavaPlugin implements IOpenInv {
return this.languageManager.getValue(key, getLocale(sender));
}
public @Nullable String getLocalizedMessage(@NotNull CommandSender sender, @NotNull String key, String... replacements) {
return this.languageManager.getValue(key, getLocale(sender), replacements);
}
@Nullable
private String getLocale(@NotNull CommandSender sender) {
if (sender instanceof Player) {