Discord | Modrinth | Hangar | GitHub
A simple kick all players command compatible with Paper, Folia and other paper forks.
This plugin achieve a simple task: Kick all players from a server.
Some plugins already move player from a server to an other server, but I coudn't found a server where it use player.kick(). Kicking the players trigger PlayerQuitEvents with KICKED as QuitReason. This specific quit reason can be used to avoid killing players if in combat with an anti combat loggout since they didn't leave the server on their own but were kicked by an admin.
This plugin might become obsolete in a future Minecraft version, if the ability to kick all player is added to Paper. I think it should be a command for all servers.
Give kickall.admin permission to use the /kickall command.
Feature requests or pull requests are welcome. Concider creating an issue first to talk about your new feature before sending a pull request.
Clone the repo git clone git@github.com:Mvndi/KickAll.git
Build with ./gradlew assemble. The plugin .jar file will be in build/libs/.
You can test the plugin directly in a Minecraft server with ./gradlew runServer.
You can also try it on an other server by placing the .jar in plugins/.
You might want to update the plugin config to fit your needs.
Push tag to git to trigger a github action release that will create a new Github release and publish to Hangar & Modrinth.
git tag 1.2.3
git push --tagsRequire ossrhUsername & ossrhPassword in ~/.gradle/gradle.properties
./gradlew clean publish
./gradlew jreleaserDeployThe published lib will be available on maven central.