From 450d9d3ba49dca995f83b19f0f7965e28c1fec77 Mon Sep 17 00:00:00 2001 From: asofold Date: Sat, 1 Sep 2012 12:38:48 +0200 Subject: [PATCH] Adjust actions for globalchat. --- src/fr/neatmonster/nocheatplus/config/DefaultConfig.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fr/neatmonster/nocheatplus/config/DefaultConfig.java b/src/fr/neatmonster/nocheatplus/config/DefaultConfig.java index 60924a62..e04e6f6a 100644 --- a/src/fr/neatmonster/nocheatplus/config/DefaultConfig.java +++ b/src/fr/neatmonster/nocheatplus/config/DefaultConfig.java @@ -129,7 +129,7 @@ public class DefaultConfig extends ConfigFile { set(ConfPaths.CHAT_GLOBALCHAT_FREQUENCY_FACTOR, 0.8D); set(ConfPaths.CHAT_GLOBALCHAT_FREQUENCY_WEIGHT, 6.0D); set(ConfPaths.CHAT_GLOBALCHAT_LEVEL, 30D); - set(ConfPaths.CHAT_GLOBALCHAT_ACTIONS, "log:globalchat:0:5:if cancel"); + set(ConfPaths.CHAT_GLOBALCHAT_ACTIONS, "log:globalchat:0:5:if cancel cmd:tellglchat"); set(ConfPaths.CHAT_NOPWNAGE_CHECK, true); set(ConfPaths.CHAT_NOPWNAGE_EXCLUSIONS, new ArrayList()); @@ -304,6 +304,7 @@ public class DefaultConfig extends ConfigFile { */ final String start = "[player] failed [check]: "; final String end = ". VL [violations]."; + final String tell = "ncp tell [player] "; set(ConfPaths.STRINGS + ".angle", start + "tried to hit multiple entities at the same time" + end); set(ConfPaths.STRINGS + ".ban", "ban [player]"); set(ConfPaths.STRINGS + ".ban-ip", "ban-ip [ip]"); @@ -337,6 +338,7 @@ public class DefaultConfig extends ConfigFile { set(ConfPaths.STRINGS + ".nofall", start + "tried to avoid fall damage for ~[falldistance] block(s)" + end); set(ConfPaths.STRINGS + ".nopwnage", start + "acted like a spambot (IP: [ip])" + end); set(ConfPaths.STRINGS + ".noswing", start + "didn't swing arm" + end); + set(ConfPaths.STRINGS + ".tellglchat", tell + "&cNCP: &eChat can by annoying at times..."); // Update internal factory based on all the new entries to the "actions" section. regenerateActionLists();