Skip to content

Commit 134ee9f

Browse files
authored
Update AbuseScoreManager.java
1 parent 7247630 commit 134ee9f

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/main/java/ru/allfire/coreprotectionassistant/managers/AbuseScoreManager.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,12 @@ public void addScore(UUID uuid, String reason, int score) {
8383
}
8484

8585
if (plugin.getConfigManager().getMainConfig().getBoolean("console_logging.abuse_score", true)) {
86-
plugin.getLogger().info("Added " + weight + " abuse score to " +
87-
playerName + " (" + reason + "). Total: " + newScore);
86+
String msg = Lang.get("abuse_score_added_log")
87+
.replace("%weight%", String.valueOf(weight))
88+
.replace("%player%", playerName)
89+
.replace("%reason%", reason)
90+
.replace("%total%", String.valueOf(newScore));
91+
plugin.getLogger().info(Lang.colorize(msg));
8892
}
8993

9094
} catch (SQLException e) {

0 commit comments

Comments
 (0)