public interface Webhook
Modifier and Type | Method and Description |
---|---|
void |
addToQueue(WebhookMessage msg)
Add message to queue of given webhook
|
void |
clean(Player p)
Clean all data for the given player.
|
void |
close()
Close webhook
|
String |
getWebhookName()
Get the webhook name
|
boolean |
ping(String asker)
Send test message to webhook
|
void |
runQueue()
Run queue each seconds.
|
void |
send(WebhookMessage msg)
Send the given message with adapted style to own webhook
|
void close()
String getWebhookName()
void addToQueue(WebhookMessage msg)
msg
- the message to sendvoid runQueue()
void send(WebhookMessage msg)
msg
- the message to sendboolean ping(String asker)
asker
- Who ask for webhook pingvoid clean(Player p)
p
- the player that left