Skip to content

Commit

Permalink
Fix IGNORE_CLAIMS locale not being retrieved as expected (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
Riksou authored May 17, 2023
1 parent eb1fc89 commit 7597572
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ public void execute(@NotNull CommandUser executor, @NotNull String[] args) {

plugin.runAsync(() -> {
plugin.getDatabase().updateUser(user, preferences);
plugin.getLocales().getLocale(type == Type.IGNORE_CLAIMS ?
"ignoring_claims_" : "town_chat_spy_" + (newValue ? "enabled" : "disabled"))
plugin.getLocales().getLocale((type == Type.IGNORE_CLAIMS ?
"ignoring_claims_" : "town_chat_spy_") + (newValue ? "enabled" : "disabled"))
.ifPresent(user::sendMessage);
});
}
Expand Down

0 comments on commit 7597572

Please sign in to comment.