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
@ -27,8 +27,10 @@ import fr.neatmonster.nocheatplus.checks.ViolationData;
|
|||||||
* Action with parameters is used for the messages (chat, console, log) or the commands.
|
* Action with parameters is used for the messages (chat, console, log) or the commands.
|
||||||
*/
|
*/
|
||||||
public abstract class ActionWithParameters extends Action {
|
public abstract class ActionWithParameters extends Action {
|
||||||
/** The parts of the message. */
|
/** The parts of the message. */
|
||||||
protected final ArrayList<Object> messageParts;
|
protected final ArrayList<Object> messageParts;
|
||||||
|
|
||||||
|
protected final String message;
|
||||||
|
|
||||||
protected boolean needsParameters = true;
|
protected boolean needsParameters = true;
|
||||||
|
|
||||||
@ -48,6 +50,7 @@ public abstract class ActionWithParameters extends Action {
|
|||||||
super(name, delay, repeat);
|
super(name, delay, repeat);
|
||||||
|
|
||||||
messageParts = new ArrayList<Object>();
|
messageParts = new ArrayList<Object>();
|
||||||
|
this.message = message;
|
||||||
// Assume we don't nee parameters.
|
// Assume we don't nee parameters.
|
||||||
needsParameters = false;
|
needsParameters = false;
|
||||||
parseMessage(message);
|
parseMessage(message);
|
||||||
|
Loading…
Reference in New Issue
Block a user