mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-11-06 18:50:54 +01:00
Store message in ActionWithParameters.
This commit is contained in:
parent
006d987518
commit
71aaba2ea8
@ -30,6 +30,8 @@ public abstract class ActionWithParameters extends Action {
|
||||
/** 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);
|
||||
|
Loading…
Reference in New Issue
Block a user