Skip to content

Anti raid

Cyrusbye720 edited this page Jun 6, 2026 · 3 revisions

Anti-raid

Detects mass-join events and toggles a server lockdown.

Configuration

anti-raid:
  enabled: true
  max-joins: 10
  time-window: 30
  lockdown:
    kick-new-joins: true
    kick-message: "&cServer is in lockdown mode. Please try again later."
    notify-staff: true
    auto-lift: 300
  • max-joins and time-window define the threshold. If max-joins players join within time-window seconds, lockdown is enabled.
  • kick-new-joins controls whether new joins are kicked while the lockdown is active.
  • notify-staff posts a Discord alert to channels.events (or channels.chat as a fallback) when the lockdown enables or lifts.
  • auto-lift automatically lifts the lockdown after N seconds. Set to 0 to require manual lift.

Manual control

/zdiscord lockdown toggles the lockdown from in-game. The player needs zdiscord.admin.

Permission

Players with zdiscord.bypass.antiraid are not counted toward the join threshold and are not kicked if kick-new-joins is enabled.


ZDiscord v1.1.0 · Home · Issues · Source

Clone this wiki locally