xAntiCheat
PluginApache-2.0

xAntiCheat

xAntiCheat - Advanced Protection

303
Downloads
0
Followers
6 months ago
Updated
📦
2
Versions

📖About xAntiCheat

banner

xAntiCheat - Advanced Protection

It's time to take your server's security to the next level! xAntiCheat is a powerful, modern, and highly configurable anti-cheat solution, designed from the ground up to be both effective and lightweight. Created for servers seeking robust protection without sacrificing performance, xAntiCheat offers an arsenal of tools to keep cheaters at bay.

This plugin is the result of careful engineering to provide administrators with full control - and a flawless user experience.

⚡ Main Features
xAntiCheat is packed with features designed for efficient administration and precise detection.

Precise and Varied Detections
Our multi-layered system covers the most common and frustrating cheats:

Combat
- Reach
- Velocity
- AutoClicker

Movement
- Fly
- Speed
- Jesus
- NoSlowDown

World and Player:

Scaffold / SafeWalk: Detects building bridges at impossible speeds and angles, and walking on the edge of blocks without sneaking.

NoFall: Prevents players from negating fall damage.

Flexible Punishment System

Verification Sequence: No more instant and questionable bans! xAntiCheat can freeze a suspicious player for a few seconds before applying the final punishment, sending an alert to the staff.

Configurable Actions: Decide what happens when a cheater is detected. You can execute any console command (ideal for ban, tempban, mute...) or use our kick system with a custom message, allowing you to create ban screens in the style of major servers.

Professional Tools for Staff

Inspection GUI: Use /xac check to open a graphical interface and see a player's violation levels in real-time.

Smart Alerts: Chat notifications are clickable and suggest the /tp command for quick teleportation.

Bypass Permission: Administrators with the xanticheat.bypass permission are ignored by the anti-cheat, allowing them to build and test without being disturbed.

Reload Command: Reload the entire configuration with /xac reload without needing to restart the server.

Advanced Logs and Notifications

SQLite Database: All violations are saved persistently. Cheaters can't escape by simply reconnecting! Additionally, a detailed log of each flag is saved with useful information like ping, TPS, and the client brand.

Discord Integration: Automatically send punishment notifications to your Discord channel via a Webhook, keeping your moderation team informed at all times.

Optimization and Compatibility

Lightweight and Efficient: Designed to have a minimal impact on your server's performance, with database operations and Discord notifications running asynchronously.

Highly Configurable: Virtually every aspect of the plugin can be modified through config.yml and lang.yml, from detection values to every single message.

Supported Version: Optimized for Minecraft 1.16.5 (and Paper/Spigot based servers).

Config.yml

#           _         _   _   ___ _                _
#  __  __ /_\  _ __ | |_(_) / __\ |__   ___  __ _| |_
#  \ \/ ///_\\| '_ \| __| |/ /  | '_ \ / _ \/ _` | __|
#   >  </  _  \ | | | |_| / /___| | | |  __/ (_| | |_
#  /_/\_\_/ \_/_| |_|\__|_\____/|_| |_|\___|\__,_|\__|
#
#       Compatible con colores HEX, & y Legacy.
#        Wiki: https://xanticheat.willfry.net

# Configuración de los castigos
punishment:
  # Elige el tipo de castigo:
  # 'command' -> Ejecuta un comando de consola (para usar con plugins como LiteBans, Essentials, etc.).
  # 'kick' -> Expulsa al jugador con un mensaje personalizado desde lang.yml.
  type: "kick"

  # Rellena esto SOLO si usas 'type: command'.
  command_format: "ban %player% [xAntiCheat] %reason%"

# Secuencia de castigo
punishment_sequence:
  # Activa la congelación del jugador por unos segundos antes de ejecutar el comando de castigo.
  freeze:
    enabled: true
    # ¿Cuántos segundos durará la congelación antes del castigo final?
    duration_seconds: 5

# Sistema de Expiración de Violaciones (Decay)
violation_decay:
  enabled: true
  interval_seconds: 300
  amount_to_reduce: 1

# Configuración de la Interfaz Gráfica (GUI)
gui:
  title: "&8xAntiCheat &7| Violaciones de &c%player%"
  size: 27
  fill_item: "GRAY_STAINED_GLASS_PANE"

# Configuración de los registros (logs)
logging:
  # Activa el guardado de cada violación en la base de datos.
  database:
    enabled: true

# Integración con Discord
discord:
  # Activa el envío de notificaciones a Discord
  enabled: true
  # Pega aquí la URL del Webhook que creaste en tu servidor de Discord.
  webhook_url: ""
  # Nombre de usuario que aparecerá en Discord
  username: "xAntiCheat"
  # URL del avatar (logo) que aparecerá en Discord
  avatar_url: "https://i.imgur.com/k6JjwL4.png"

# Configuración de los checks de hacks
checks:
  speed:
    enabled: true
    max_violations: 15
    reason: "Velocidad Anormal (Speed)"
  fly:
    enabled: true
    max_violations: 10
    reason: "Vuelo Ilegal (Fly)"
  jesus:
    enabled: true
    max_violations: 20
    reason: "Movimiento Anormal sobre Líquidos (Jesus)"
  nofall:
    enabled: true
    max_violations: 8
    reason: "Daño por Caída Anulado (NoFall)"
  reach:
    enabled: true
    max_violations: 15
    reason: "Alcance Anormal (Reach)"
    max_distance: 3.2
  scaffold:
    enabled: true
    max_violations: 20
    reason: "Construcción Ilegal (Scaffold)"
  velocity:
    enabled: true
    max_violations: 10
    reason: "Modificación de Knockback (Velocity)"
    reduction_threshold_percent: 95
  noslowdown:
    enabled: true
    max_violations: 12
    reason: "Sin Ralentización (NoSlowDown)"
  autoclicker:
    enabled: true
    max_violations: 25
    reason: "Clics Anormales (AutoClicker)"
    max_cps: 20

Lang.yml

# xAntiCheat Language File by WillfryDev

# Prefijo para todos los mensajes del plugin
prefix: "&8[&c&lxAntiCheat&8] &r"

# Mensajes para el staff que tiene el permiso 'xanticheat.alerts'
alerts:
  flag: "%prefix%&c%player% &ffalló el check &c%check% &7(&cx%violations%&7)"
  hover_text: "&a ✔ ¡Oye! &f¡Haz clic para teletransportarte hacia &c%player%&f!"

# Mensaje para la pantalla de expulsión (si 'punishment.type' es 'kick')
kick_screen_format:
  - ""
  - "&c¡Has sido expulsado por Actividad Sospechosa!"
  - ""
  - "&8 ▸ &fRazón: &c%reason%"
  - "&8 ▸ &fBaneado por: &cConsola"
  - "&8 ▸ &fFecha: &e%date%"
  - ""
  - "&7¿Crees que la suspensión fue injusta?"
  - "&fPuedes apelar este baneo en: &b&ndiscord.ejemplo.com"
  - ""

# Mensajes para la secuencia de congelación
freeze:
  player_message: "&c ✘ ¡Actividad sospechosa detectada! &fRealizando una última comprobación..."
  staff_alert: "%prefix%&c ✘ ¡Oye! &fEl jugador &c%player% &fha sido congelado por sospecha de hacks. Castigo final en &c%seconds%&f segundos."

# Mensajes para los comandos
commands:
  no_permission: "%prefix%&c ✘ ¡Oye! No tienes permiso para ejecutar este comando."
  reload_success: "%prefix%&a ✔ ¡Éxito! La configuración y los mensajes han sido recargados exitosamente."
  unknown_command: "%prefix%&c ✘ ¡Ups! Comando desconocido. Usa /xac help para ver la ayuda."
  help_message:
    - "&8&m-----------------&r &c&lxAntiCheat &8&m-----------------"
    - ""
    - "&8 • &c/xac help &7▸ &fMuestra este menú de ayuda."
    - "&8 • &c/xac reload &7▸ &fRecarga la configuración del plugin."
    - "&8 • &c/xac check <jugador> &7▸ &fRevisa las violaciones de un jugador."
    - ""
    - "&8&m----------------------------------------------------"

# Textos para la Interfaz Gráfica (/xac check)
gui:
  item_name: "&fCheck: &c%check_name%"
  item_lore:
    - ""
    - "&8 ▸ &fEl jugador ha acumulado un total de"
    - "&8 ▸ &C%violations%/%max_violations%&f violaciones para este check."
    - ""
    - "&8 • &fEstado: %status%"
    - ""
  status:
    safe: "&aSeguro"
    suspicious: "&eSospechoso"
    failed: "&cFallido"

🚀 Installation

Download the xAntiCheat .jar file.

Place it in your server's plugins folder.

Restart the server.

Done! You can now configure the config.yml and lang.yml files to your liking.

🔥 Support and Suggestions
Have a question or an idea for a new detection? Join our community!