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);