public class AlertWebhookMessage extends WebhookMessage
WebhookMessage.WebhookMessageType
concerned, date, messageType, placeholders, sender
Constructor and Description |
---|
AlertWebhookMessage(WebhookMessage.WebhookMessageType messageType,
Player concerned,
String sender,
long date,
long amount,
int reliability,
Cheat cheat) |
Modifier and Type | Method and Description |
---|---|
String |
applyPlaceHolders(String message)
Apply all placeholders available for this message
|
boolean |
canCombine()
Know if this type of webhook message can be combined.
|
AlertWebhookMessage |
combine(WebhookMessage msg)
Combine actual message instance with given one
|
getConcerned, getMessageType, getPlaceholders, getSender
public AlertWebhookMessage(WebhookMessage.WebhookMessageType messageType, Player concerned, String sender, long date, long amount, int reliability, Cheat cheat)
public AlertWebhookMessage combine(WebhookMessage msg)
WebhookMessage
combine
in class WebhookMessage
msg
- the message to addpublic boolean canCombine()
WebhookMessage
canCombine
in class WebhookMessage
public String applyPlaceHolders(String message)
WebhookMessage
applyPlaceHolders
in class WebhookMessage
message
- the raw memssage