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) {

View File

@@ -25,4 +25,4 @@ messages:
off: 'off'
container:
player: '%player%''s Inventory'
enderchest: '%Player''s Ender Chest'
enderchest: '%player%''s Ender Chest'