create a plugin that detects how much blocks are being placed by a playeri n seconds and if theya re in different directions and for example if they are facing down and place a block up like an anti cheat it bans them for 30 minutes and alerts any op name it [Wemmbina Anticheat]
[Generation stopped]
this is to stop litematica printer and make it so that if it detects a block placed midair it gets removed and bans them for 30 mins and alerts an op like easpyplace and the mod ;itematica printer stop them
The generation was stopped before any content could be produced.
his is to stop litematica printer and make it so that if it detects a block placed midair it gets removed and bans them for 30 mins and alerts an op like easpyplace and the mod ;itematica printer stop them
I’ll create a minimal Spigot plugin with three checks: isolated midair placement, configurable placements-per-second, and placing behind the player’s facing direction. A violation restores the replaced block, bans the player for 30 minutes, kicks them, logs the incident, and alerts online operators with the requested prefix.
Created WemmbinaAnticheat with:
Detects isolated/midair block placements.
Detects excessive placement speed per configurable time window.
Detects blocks placed behind the player’s facing direction.
Removes the suspiciously placed block.
Bans the player for 30 minutes.
Kicks the player with a warning.
Alerts every online operator using the
[Wemmbina Anticheat]prefix.Adds a bypass permission:
wemmbinaanticheat.bypass.Includes configurable thresholds in
config.yml.
what server software does this support
It currently targets:
Spigot 1.20.4
Paper 1.20.4
Purpur 1.20.4
Other Spigot-compatible 1.20.4 forks
It requires Java 17.
Although plugin.yml declares API version 1.13, the project is compiled against the Spigot 1.20.4 API, so older versions are not officially supported. It should work on newer Spigot-compatible versions if their APIs remain compatible, but that has not been verified.
what are all the commands
WemmbinaAnticheat currently has no commands.
It only uses this permission:
wemmbinaanticheat.bypass— bypasses the placement checks; default:false
Players are automatically detected, banned for 30 minutes, and operators are alerted.
how do i unban my self if 9i watch testing it
From the server console, run:
pardon YourMinecraftName
You can also use:
unban YourMinecraftName
Then reconnect to the server. The automatic ban lasts 30 minutes, but pardon removes it immediately.
For testing, give yourself the bypass permission before placing blocks:
lp user YourMinecraftName permission set wemmbinaanticheat.bypass true
If LuckPerms is not installed, temporarily disable the plugin or add your name to its bypass configuration if that option is available.
package com.wemmbina.anticheat;
import org.bukkit.plugin.java.JavaPlugin;
public final class WemmbinaAnticheat extends JavaPlugin {
@Override
public void onEnable() {
saveDefaultConfig();
getServer().getPluginManager().registerEvents(new PlacementListener(this), this);
getLogger().info("Wemmbina Anticheat enabled.");
}
}