Store message in ActionWithParameters.

This commit is contained in:
asofold 2012-11-09 11:57:33 +01:00
parent 006d987518
commit 71aaba2ea8

View File

@ -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<Object> messageParts;
/** The parts of the message. */
protected final ArrayList<Object> 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<Object>();
this.message = message;
// Assume we don't nee parameters.
needsParameters = false;
parseMessage(message);