mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-12-31 21:07:50 +01:00
Store message in ActionWithParameters.
This commit is contained in:
parent
006d987518
commit
71aaba2ea8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user