Correct lang + replacement mistake with inventory names
This commit is contained in:
@@ -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) {
|
||||
|
@@ -25,4 +25,4 @@ messages:
|
||||
off: 'off'
|
||||
container:
|
||||
player: '%player%''s Inventory'
|
||||
enderchest: '%Player''s Ender Chest'
|
||||
enderchest: '%player%''s Ender Chest'
|
||||
|
Reference in New Issue
Block a user