Skip to content

Commit

Permalink
Added config option for LanguageManager notify
Browse files Browse the repository at this point in the history
  • Loading branch information
Flo56958 committed May 8, 2020
1 parent c875be6 commit a0c504a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@ public void onJoin(PlayerJoinEvent event) {
+ " is not currently supported. If you want MineTinker to support this language you "
+ "can help translating on Transifex!");
} else {
if (!LanguageManager.isComplete()) {
if (!LanguageManager.isComplete()
&& Main.getPlugin().getConfig().getBoolean("LanguageManagerNotifyOP", true)) {
Long langCompleteness = LanguageManager.getCompleteness();
ChatWriter.sendMessage(player, ChatColor.RED, "The translation you are using is only "
+ langCompleteness / 100 + "." + langCompleteness % 100
Expand Down
1 change: 1 addition & 0 deletions core/src/main/resources/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ chat-messages: true #Will turn off command output
actionbar-messages: true
actionbar-on-exp-gain: false
BroadcastConfigChanges: true
LanguageManagerNotifyOP: true #Should the LanguageManager notify the server operators if the language settings might be wrong or incomplete

#--COMMANDS--
NameCommandBlacklist: #Which words are not allowed in the name of Tools and Armor (Regex-Expressions allowed)
Expand Down

0 comments on commit a0c504a

Please sign in to comment.