thedutchpianoman_

it doesnt seem that the plugin pvpguardian kicks the person who is hacking immediately. i want it so that on the 2nd alert that the one is hacking that it then kicks the person. if the person is hacking and the plugin alerts it for the 15th time then the plugin /ban the person for 1 day

Kodari AI
KodariOct 1 at 2:52 pm 1

There are no projects in this workspace yet. Is PvPGuardian an existing project you can add here, or would you like me to create a new Minecraft plugin project for it?

thedutchpianoman_

it doesnt seem that the plugin pvpguardian kicks the person who is hacking immediately. i want it so that on the 2nd alert that the one is hacking that it then kicks the person. if the person is hacking and the plugin alerts it for the 15th time then the plugin /ban the person for 1 day

Kodari AI
KodariOct 1 at 2:53 pm 1
Delegated to PvPGuardian Running
Modify the PvPGuardian/PvPPalaceAntiCheat plugin to implement escalating per-player anti-cheat punishment: first recorded alert only notifies/logs; on the 2nd recorded alert, immediately kick the player; on the 15th recorded alert, ban the player for 1 day and kick them with the ban reason (ban supersedes kick). Count alerts player-wide across all check types, not separate per check. Since a kick disconnects the player, preserve the alert count across quit/rejoin and server restarts, keyed by UUID; do not reset this escalation counter in IncidentService.clear(Player). Keep existing check counters/logic only as needed, but ensure they cannot cause a kick before player alert #2 and do not prevent the #15 ban. Use Bukkit/Paper's built-in timed ban API (or an equivalent reliable API); do not assume an external /ban command plugin is installed. Expiration should be exactly one day from the ban time. Make thresholds/duration configurable in config.yml with defaults kick-after-alerts: 2, ban-after-alerts: 15, ban-duration-days: 1. Alert counting should be based on actual recorded/reportable incidents, avoiding counting every raw internal check invocation suppressed by current one-second logging throttle. Preserve incident logging and staff alerts; annotate incident details/action status appropriately for kick and ban. Read existing IncidentService and CombatChecks, adapt to existing code and Bukkit target API, update defaults safely, and make clear in comments/config that the ban is functionally equivalent to `/ban <player> 1d`. Do not change unrelated checks. Finish the code/config edits only; I will compile.

I’ve started updating PvPGuardian so a player-wide alert count triggers a kick on alert 2 and a one-day ban on alert 15, with the count preserved across reconnects and restarts. The ban will use the server’s built-in ban API, so it won’t depend on an external /ban plugin.

Report from 1 project
PvPGuardianCompleted
TaskModify the PvPGuardian/PvPPalaceAntiCheat plugin to implement escalating per-player anti-cheat punishment: first recorded alert only notifies/logs; on the 2nd recorded alert, immediately kick the play...
  1. Replace per-check kick thresholds with player-wide recorded-incident escalation.

  2. Persist UUID alert counts separately from quit-cleared check state.

  3. Use Bukkit’s timed name-ban API, annotate incidents, and add configurable thresholds/reasons.Changed IncidentService.java and config.yml.

Recorded incidents now escalate player-wide by UUID: alert #2 kicks, and alert #15 applies a timed ban and kicks with the ban reason. Counts are persisted across quits and restarts; incidents suppressed by the existing one-second recording throttle don’t count. Per-check thresholds no longer trigger punishments. Incidents retain their log and alert flow, with kick/ban status added to incident details.

Added configurable actions.kick-after-alerts, actions.ban-after-alerts, actions.ban-duration-days, and actions.ban-reason. The default one-day ban uses Bukkit’s built-in timed name-ban API, equivalent to /ban <player> 1d. Not compiled, as requested.

Kodari AI
KodariOct 1 at 2:55 pm 1
Compiled PvPGuardianSucceeded

Implemented and compiled successfully. PvPGuardian now kicks on the player’s second recorded alert and applies a one-day timed ban on the fifteenth, using the built-in ban API. Alert counts persist across reconnects and restarts; the thresholds and ban duration are configurable.

Kodari can make mistakes. Review important code before using.
Files

No files in this session

Code