Anti-Xray 1.5.4

Anti Xray Skript with [Alerts] [Punishments]

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


    [​IMG]
    Use code "STRIKER" for 10% off!

    Want to see plugin showcases?
    Check out my
    YouTube Channel



    [​IMG]
    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!

    Notice!
    - Since version 1.5.3, I am no longer supporting obfuscation/hidden ores due to causing to much lag :( So for the greater good, I have removed it.

    Version 1.4.8 has both obfuscation and hidden ores included within the GUI. (uses block radius)
    Version 1.5.2 only has obfuscation only (uses chunks)



    Old version. Spanish Video by Maxmar628





    FAQ's
    Where is the config? Found in the top of the axr.sk

    Why is it giving me this error?
    Code (Text):
    ERROR Can't compare a player with 'in world "world"' (axr.sk, line 949: if player is in world "{@enabled_world}":')
    Place the name of your world to enabled in (axr.sk) > enabled_world: world

    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 (axr.sk)
    • 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.14.4 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}%
    upload_2019-9-30_14-34-1.png


    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):

    #CONFIG
    options:

        #CONFIG STARTS BELOW!
        #=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
        #MESSAGES:
     
        #!!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%
     
        #=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
        #SOUNDS:
        #Make sure you have the right sounds for your server version!
        #https://www.planetminecraft.com/blog/all-minecraft-sound-id-s-1-11-2/
     
        enabled_sound: entity.player.levelup
        disabled_sound: entity.item.break
        error_sound: entity.villager.no

        #=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
        #AUTO DETECTION SYSTEM:
     
        #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
     
        #=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
     

    Notice!

    - Since version 1.5.3, I am no longer supporting obfuscation/hidden ores due to causing to much lag :( So for the greater good, I have removed it.


    Version 1.4.8 has both obfuscation and hidden ores included within the GUI. (uses block radius)

    Version 1.5.2 only has obfuscation only (uses chunks)



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


    [​IMG]
    Use code "STRIKER" for 10% off!


    Want to see plugin showcases?
    Check out my
    YouTube Channel


    [​IMG]



    TOS:
    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.

Recent Reviews

  1. markerz99
    markerz99
    5/5,
    Version: 1.5.4
    Very nice plugin !!! , this is working 1.14.4 support mutiworld You can know which player is trying to use xray.
    1. SoulStriker_
      Author's Response
      Thank you for the review!
  2. wolfbreeder7
    wolfbreeder7
    5/5,
    Version: 1.5.4
    runs perfectly fine with no lag even though I only have 2 GB of ram and found 4 players with it in 1 day
    1. SoulStriker_
      Author's Response
      Thanks for the review! Glad it's working good!
  3. lavaflowglow
    lavaflowglow
    1/5,
    Version: 1.5.4
    it does not work, just spits out errors. it just says this 03.12 00:21:14 [Server] Server thread/ERROR Can't compare a player with 'in world "world"' (axr.sk, line 949: if player is in world "{@enabled_world}":')
    03.12 00:21:14 [Server] Server thread/ERROR Can't compare a player with 'in world "world"' (axr.sk, line 956: if player is in world "{@enabled_world}":')
    03.12 00:21:14 [Server] Server thread/ERROR Can't compare a player with 'in world "world"' (axr.sk, line 965: if player is in world "{@enabled_world}":')
    03.12 00:21:14 [Server] Server thread/ERROR Can't compare a player with 'in world "world"' (axr.sk, line 977: if player is in world "{@enabled_world}":')
    03.12 00:21:14 [Server] Server thread/ERROR Can't compare a player with 'in world "world"' (axr.sk, line 988: if player is in world "{@enabled_world}":')
    03.12 00:21:14 [Server] Server thread/ERROR Can't compare a player with 'in world "world"' (axr.sk, line 999: if player is in world "{@enabled_world}":')
    03.12 00:21:14 [Server] Server thread/ERROR Can't compare a player with 'in world "world"' (axr.sk, line 1010: if player is in world "{@enabled_world}":')
    03.12 00:21:14 [Server] Server thread/ERROR Can't compare a player with 'in world "world"' (axr.sk, line 1020: if player is in world "{@enabled_world}":')
    1. SoulStriker_
      Author's Response
      If you came to my discord I could help you first before submitting a review. https://discord.gg/bEDGQxc You need to configure it. Put the name of your world in axr.sk under "enabled world"
  4. BillyCooldude
    BillyCooldude
    5/5,
    Version: 1.5.3
    Fantastic updates and mechanics. Keep up the good work Done good job with the skript
    1. SoulStriker_
      Author's Response
      Thank you for the review!
  5. PaciorJr
    PaciorJr
    1/5,
    Version: 1.5.2
    the latest version that worked 1.4.8 new does not work like this. why you delete ore system in gui?!
    1. SoulStriker_
      Author's Response
      If you want the hidden ores. You can keep 1.4.8 :) Please change your review.
  6. mysticpath
    mysticpath
    4/5,
    Version: 1.5.1
    update error to 1.5.1

    [13:49:16 ERROR]: Can't understand this condition/effect: set {airon.name} or {agold.name} or {adiamond.name} or {aemerald.name} or {autoiron.name} or {autogold.name} or {autoemerald.name} or {autodiamond.name} "&8[&eNot Activated&8]" (axr.sk, line 170: set {airon.name} or {agold.name} or {adiamond.name} or {aemerald.name} or {autoiron.name} or {autogold.name} or {autoemerald.name} or {autodiamond.name} "&8[&eNot Activated&8]"')
    1. SoulStriker_
      Author's Response
      This has been fixed in the newest version. Please Use that. And delete your review please :) If you are still having issues, make a ticket on my discord. https://discord.gg/bEDGQxc
  7. Xin_
    Xin_
    5/5,
    Version: 1.5.1
    Hello, this plugin is great.
    I am a Chinese user, so my English is not very good.
    Want to ask the Admin if it is not affected by this plugin? This option was not found in the configuration file, thank you!^_^
    1. SoulStriker_
      Author's Response
  8. WORRYlNG
    WORRYlNG
    5/5,
    Version: 1.5.0
    Excellent staff response easy to understand the solution to my problem highly recommend for a factions server! keep up the fantastic work!!
    ~ 19
    1. SoulStriker_
      Author's Response
      Thank you for the review!
  9. Mr_Sorcerer
    Mr_Sorcerer
    5/5,
    Version: 1.4.7
    Very good plugin! I just love it!!
    Sorry for bad english, Im not from England or smth. 5stars - of course !
    1. SoulStriker_
      Author's Response
      Thank you for the review! :)
  10. Vilzu45
    Vilzu45
    2/5,
    Version: 1.4.7
    it works but it lags a LOT please fix or tell me what to do. the tps seems to be at 20 but it lags server side
    1. SoulStriker_
      Author's Response
      This has been fixed in the updated version. Please refer to that and change a review if it works better for you, thanks.