Creators
Details
1
Compatibility
Changes
Makes banwaves easier to implement
Ever wanted to make an anticheat with a ban wave system but simply couldn't be bothered? Do it easier with this simple API! You can even manually add people to the next ban wave with commands such as /banwave add (user) [Time/perm] [Reason] and remove them from the next banwave with /banwave remove (user).
Why banwaves?
Banwaves are a common tactic used by servers with custom anticheats or measures to punish players which bans people later making it hard to track down what exactly got them banned. This is useful because it prevents exploiters narrowing down all the things getting them banned quickly and easily just trying something else until it works.
How do I use the API?
Plugin banwave = getServer().getPluginManager().getPlugin("BanwaveManager");
// Example: Add a player to the banwave
banwave.addToBanwave("Steve", "10m", "Violation of rules");
removeFromBanwave("Steve") is another function you can use in the plugin if needed.
Should work fine however you can also just dispatch the commands using Bukkit if that's more convienent.
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:VU7Upvq5:uXuD0Yor"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:VU7Upvq5:uXuD0Yor"
}

