mirror of
https://github.com/TotalFreedomMC/OpenInv.git
synced 2025-08-09 22:13:04 +00:00
Correct lang + replacement mistake with inventory names
This commit is contained in:
parent
a1b2df74cc
commit
34e7252d77
4 changed files with 13 additions and 13 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue