mirror of
https://github.com/JonasunderscoreJones/YetAnotherDiscordChatLink.git
synced 2025-10-23 00:39:17 +02:00
commit
942253f810
1 changed files with 3 additions and 3 deletions
|
@ -112,11 +112,11 @@ public class DiscordBot extends ListenerAdapter {
|
||||||
});
|
});
|
||||||
|
|
||||||
ServerLifecycleEvents.SERVER_STARTED.register(server -> {
|
ServerLifecycleEvents.SERVER_STARTED.register(server -> {
|
||||||
sendToDiscord("Server is started!");
|
sendToDiscord("Server has started!");
|
||||||
});
|
});
|
||||||
|
|
||||||
ServerLifecycleEvents.SERVER_STOPPED.register(server -> {
|
ServerLifecycleEvents.SERVER_STOPPED.register(server -> {
|
||||||
sendToDiscord("Server is stopped!");
|
sendToDiscord("Server has stopped!");
|
||||||
stopBot();
|
stopBot();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue