Anti-Xray 1.6.6

Anti Xray Skript with [Alerts] [Punishments]

  1. SoulStriker_
    Native Minecraft Version:
    Tested Minecraft Versions:
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    • 1.13
    • 1.14
    • 1.15
    • 1.16


    Need custom builds? Check out Odyssey Builds for 10% off using "STRIKER10"!

    Get $5 off when buying a domain from

    Video Showcase!

    Check out my YouTube Channel

    Join my DISCORD if you have issues! Please do not leave a bad review if something doesn't work. I can help fix it, if you come to me first!



    Where is the config? Found in the top of the

    Why is it giving me this error?
    Code (Text):
    ERROR Can't compare a player with 'in world "world"' (, line 949: if player is in world "{@enabled_world}":')
    Select the world name in the GUI.

    How do I get fake ores? This is only used with paper spigot; open the "readme" file and you can use the paper.yml provided in the .zip.

    How come I don't see alerts? If you are testing it yourself make sure of ALL the following:
    • Enable ore alerts
    • Have the correct world enabled in in the gui
    • Have the correct permissions (axr.alerts)
    • If you are OP, you need to negate the (axr.exempt) permission
    • Not in creative
    • Mined the amount of (x) ore in the timer amount
    • Not mining placed ores. Use natural generated ores to test or set blocks with world edit.
    What versions does it work on? Spigot or PaperSpigot 1.9.4 - 1.16.x are the official tested versions. Anything below 1.9.4 will not be supported.

    How do I get Placeholder's to work? Be sure you have PlaceholderAPI and type /papi ecloud download Skript.
    Code (Text):
    PlaceHolders with PlaceHolderAPI: "/papi ecloud download Skript"

    Iron Ore = %skript_iore.{player}%
    Gold Ore = %skript_gore.{player}%
    Lapis Ore = %skript_lore.{player}%
    Redstone Ore = %skript_rore.{player}%
    Diamond Ore = %skript_dore.{player}%
    Emerald Ore = %skript_eore.{player}%

    Alert Commands: Add commands you want to execute when you click on the alert message (Version 1.3.4 & higher). For this use `/` in front of the command. Make sure whoever can see the alerts via "axr.alerts" has access to the command you choose.

    Timer: This sets the timer for when you want to get ore alerts. When a player is mining, every X seconds that is set in the config, alerts will send to staff or players with the "axr.alerts" permission node; saying ["Player has mined "ores" in "x" amount of time.]

    Ores mined in a x seconds: Sets the alerts for each specific ore. Example: If 15+ gold is mined, it will notify staff with the permission! Whatever ore and the quantity of the ore that is set in the config, it will notify staff of ores mined in the Timer amount. Ore alerts must be enabled in the GUI!

    Detect ores in mined x seconds: This is used for the auto detection if it is enabled. Set specific ore numbers within the Timer settings. If a player mines 13 diamonds in 30 seconds. The auto-detection will kick them because that is alot of diamonds within 30 seconds. (ALL OF THIS CAN BE CHANGED!)

    AutoKickTime: This is set if a player is auto kicked twice from the detection. On the 3rd time a player has mined more ores than set in the config. It will go on to the next command.

    Commands for Auto Detection: Add whatever command you want to execute. Do not use `/` in front of the command. Do not change the variable names or else it won't work!
    Code (Text):


        #!!If you want to disable certain ores alerts, put a "#" in front.
        #IE: --> #iron_alert_msg: &e%arg-player% &7found &fIron: %{icounter.%arg-player%}% &7in &e%{timer}% &7seconds!
        #!DO NOT change variables in brackets  ie --> %{dcounter.%arg-player%}% <--!
        #ONLY change colorcodes and other words :)

        enabled_world: world
        prefix: &8[&6Anti-Xray&8]
        truemsg: &7[&a✔ Enabled&7]
        falsemsg: &7[&c✘ Disabled&7]
        iron_alert_msg: &7found &f%{icounter.%arg-player%}% Iron &7in &e%{timer}% &7seconds!
        gold_alert_msg: &7found &6%{gcounter.%arg-player%}% Gold &7in &e%{timer}% &7seconds!
        diamond_alert_msg: &7found &b%{dcounter.%arg-player%}% Diamonds &7in &e%{timer}% &7seconds!
        emerald_alert_msg: &7found &a%{ecounter.%arg-player%}% Emeralds &7in &e%{timer}% &7seconds!
        #message that will appear when you hover over the alert message
        alert_hover_msg: &7Click to &6teleport &7to (&e%arg-player%&7)
        #Command to execute when you click on the alert message.
        #Whoever clicks on the alerts will need permission for the following command(s).
        #to disable commands put `#` in front. It might load with an error, but it will still work properly!
        #example -> #alert_command1: vanish %player% <-
        alert_command1: /tp %arg-player%
        #only use a "/" in front for the 1st command!
        alert_command2: gamemode spectator %player%
        alert_command3: vanish %player%
        #Make sure you have the right sounds for your server version!
        enabled_sound: entity.player.levelup
        disabled_sound: entity.item.break

        #Auto-detection must be enabled in the GUI for this to work!
        #autokick for which ore type and how many is mined within the timer amount.
        #if it reaches that amount spefic amount for any ore, they will get punished.
        #!!USE "%arg-player%" for the player's name!!
        auto_alert_message: &e%arg-player% &6might be xraying!
        auto_command1: kick %arg-player% &8[&6Anti-Xray&8] &c&lPlease remove xray, you have been warned!
        auto_command2: add another command
        auto_command3: add another command
        auto_command4: add another command
        #how many times should autokick happen before the next punishment.
        #example: two times the autokick will happen, then on the 3rd time, it will go to the next punishment.
        autokicktime: 2
        auto_next_message: &e%arg-player% &chas reached the limit for warnings!
        auto_next_command1: clearinventory %arg-player%
        auto_next_command2: tempban %arg-player% 2h &8[&6Anti-Xray&8] &4&lRemove your xray!
        auto_next_command3: add another command here
        auto_next_command4: add another command here

    Special Thanks to:
    @6085kevin - 1st donator!

    *Dependencies are in the zip folder*
    Skript Download Site
    SkQuery Download

    Want to see plugin showcases?
    Check out my
    YouTube Channel


    1. You are permitted to adjust code to your liking but I do not support any damage you may cause while doing so.
    2. You are not permitted to sell, give or redistribute this skript as your own in any way.

    3. You can't claim this skript as your own.
    tripalink, Eth1, VICBIECK and 16 others like this.

Recent Reviews

  1. MutatedNut
    Version: 1.6.6
    A very good plugin but for some reason the punishments don't work for me. I have put the command I want it to run after 1 kick, but it just kicks every single time instead of going to the next command.
  2. Innocent
    Version: 1.6.6
    Great plugin for catching x-rayers! Although I do have an issue where every time I join my server I keep getting an update message, even though I already updated to the latest version.
    1. SoulStriker_
      Author's Response
      Thank you for the review! I'm sorry, I have updated that so it should be good now.
  3. Carl0Jonshon
    Version: 1.6.6
    The author write me a discord, I have an excellent source of the best protection I will wait
    1. SoulStriker_
      Author's Response
  4. DannySykes_
    Version: 1.6.6
    Good afternoon from the updata the plugin stopped working and I would like to know if something is creating conflict I get the following message

    Error>> That Player has never joined!

    1. SoulStriker_
      Author's Response
  5. Xdlob9
    Version: 1.6.6
    This is one of the best free Anti-XRay plugins that i had tested.
    The support on Discord is very friendly and they constantly talk to you if you have any problem with the Skript its-self.

    PS: Been using since March and its perfect ^^
    Keep the good work!
    1. SoulStriker_
      Author's Response
      Thank you very much for the review :) Glad it's working how it should!
  6. zelopec
    Version: 1.6.5
    Very good resource. It works perfectly and the creator's support is TOP. I recommend using on paper instead of spigot to activate the fake ores!
    1. SoulStriker_
      Author's Response
      Thank you for the review zelopec! I'm glad you like it :)
  7. 6085kevin
    Version: 1.6.5
    THX FOR UPDATE 1.16, GUY! <3
    1. SoulStriker_
      Author's Response
      Thank you for the review!
  8. Norge100
    Version: 1.6.4
    If they mining 1 diamond, they get banned immediately
    1. SoulStriker_
      Author's Response
      That is on your settings. Means that your didn't follow or read how to set it up. Either disable auto-detection or change the count.
  9. rawnes
    Version: 1.6.3
    The plugin works perfect also hes discord support is 10/10 thanks for everything
    1. SoulStriker_
      Author's Response
      Thank you for the review!
  10. luxandre
    Version: 1.6.3
    it works 100% fine!!!!!!!!! now my players will never escape the ban hammer...............
    1. SoulStriker_
      Author's Response
      Thank you for the review! Glad you are enjoying it :)