From 71aaba2ea841791f2f508eb6637f0e7fcc882ef5 Mon Sep 17 00:00:00 2001 From: asofold Date: Fri, 9 Nov 2012 11:57:33 +0100 Subject: [PATCH] Store message in ActionWithParameters. --- .../nocheatplus/actions/types/ActionWithParameters.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/fr/neatmonster/nocheatplus/actions/types/ActionWithParameters.java b/src/fr/neatmonster/nocheatplus/actions/types/ActionWithParameters.java index 2742d29f..3d52c006 100644 --- a/src/fr/neatmonster/nocheatplus/actions/types/ActionWithParameters.java +++ b/src/fr/neatmonster/nocheatplus/actions/types/ActionWithParameters.java @@ -27,8 +27,10 @@ import fr.neatmonster.nocheatplus.checks.ViolationData; * Action with parameters is used for the messages (chat, console, log) or the commands. */ public abstract class ActionWithParameters extends Action { - /** The parts of the message. */ - protected final ArrayList messageParts; + /** The parts of the message. */ + protected final ArrayList messageParts; + + protected final String message; protected boolean needsParameters = true; @@ -48,6 +50,7 @@ public abstract class ActionWithParameters extends Action { super(name, delay, repeat); messageParts = new ArrayList(); + this.message = message; // Assume we don't nee parameters. needsParameters = false; parseMessage(message);