Skip to content

Mvndi/KickAll

Repository files navigation

download discord-shield

Discord | Modrinth | Hangar | GitHub

KickAll

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.

Statistics

bStats Graph Data

Build, Test & deploy

Feature requests or pull requests are welcome. Concider creating an issue first to talk about your new feature before sending a pull request.

Build

Clone the repo git clone git@github.com:Mvndi/KickAll.git

Build with ./gradlew assemble. The plugin .jar file will be in build/libs/.

Test

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.

Deploy

To Github releases, Hangar & Modrinth

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 --tags

to Maven central

Require ossrhUsername & ossrhPassword in ~/.gradle/gradle.properties

./gradlew clean publish
./gradlew jreleaserDeploy

The published lib will be available on maven central.

About

A simple kick all players command

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

 
 
 

Contributors

Languages