Skip to content

feat: add player kick notifications to stop and restart commands and …#32

Merged
ammodev merged 2 commits intoversion/1.21.11from
feat/restart-stop-kick-messages
Mar 15, 2026
Merged

feat: add player kick notifications to stop and restart commands and …#32
ammodev merged 2 commits intoversion/1.21.11from
feat/restart-stop-kick-messages

Conversation

@TheBjoRedCraft
Copy link
Copy Markdown
Member

…update version to 1.21.11-2.0.7-SNAPSHOT

@TheBjoRedCraft TheBjoRedCraft self-assigned this Mar 14, 2026
Copilot AI review requested due to automatic review settings March 14, 2026 23:18
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds explicit player kick notifications when stopping/restarting the server, and updates the project version.

Changes:

  • Kick all online players with a shutdown/restart message before executing Bukkit.shutdown().
  • Apply the same kick-notification behavior to immediate restart and scheduled restart execution paths.
  • Update gradle.properties project version.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 3 comments.

File Description
src/main/kotlin/dev/slne/surf/essentials/command/minecraft/StopCommand.kt Kick all players with a shutdown message before shutting down.
src/main/kotlin/dev/slne/surf/essentials/command/minecraft/RestartCommand.kt Kick all players with a restart message for immediate and scheduled restarts.
gradle.properties Bump project version.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +159 to +163
forEachPlayer {
it.kick(buildText {
error("Der Server wird neugestartet...")
}, PlayerKickEvent.Cause.RESTART_COMMAND)
}
Comment on lines +65 to +69
forEachPlayer {
it.kick(buildText {
error("Der Server wird neugestartet...")
}, PlayerKickEvent.Cause.RESTART_COMMAND)
}
Comment on lines +98 to +102
forEachPlayer {
it.kick(buildText {
error("Der Server wird neugestartet...")
}, PlayerKickEvent.Cause.RESTART_COMMAND)
}
@ammodev ammodev merged commit c536180 into version/1.21.11 Mar 15, 2026
@ammodev ammodev deleted the feat/restart-stop-kick-messages branch March 15, 2026 00:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants