Inactive [ADMIN/MISC] XrayDetection v0.6 - Simple xray detection [1529]

Discussion in 'Inactive/Unsupported Plugins' started by orange451, Jul 18, 2011.

  1. Offline


    xraydetection plugin - allows for simple detection of xrayers:
    Version: v0.6
    This plugin allows for admins to find some xrayers in the server. No, it wont find them all, nor is it perfect. It is up to you to teleport yourself to them, when it tells you it thinks they're cheating. (it will only kick in once they've mined more than 150 stone blocks).
    admins can use the following commands:
    • /legit [playername] to pardon a player from the xray detection
    • /ratio [playername] returns their ratio
    • checks if players are mining way too many diamonds than they should be.
    Download the plugin here

    The node to use, is "xraydetection.admin"

    Version 0.6
    • changed the plugin to 1240 bukkit. Attempted to fix the too many open files bug.
    Version 0.5
    • Apparently, there was a slight memory leak error, shouldn't happen anymore.
    Version 0.4
    • Added permission support
    Version 0.1
    • Releasing my plugin
    Version 0.2

    • changed it from /pardon to /legit [playername] for it was conflicting with the unban method
    clitcomander likes this.
  2. Offline


    Won't /pardon conflict with the unbanning command?

    You should change it to something else :p
  3. Offline


    what else should it be? :/ pardon makes sence

    changed it to /legit [playername] instead.

    I fixed a MAJOR bug in ALL of my plugins released, where only the eldest of my plugins (in the plugins folder) would work, this was because I was using the onCommand method in the main class, rather than instancing one in the playerListener :)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 17, 2016
  4. Offline


    I USE this plugin frequently . the instant we added this to, we busted like 5 xrayers right away. this plugin is so accurate that we could the warning, not even check the player instead bluff. and they would say sorry, admintting it. thats how accurate. ive met this developer and hes a good guy and quick with code and with fixing errors.

    come to minesworn server to see it in action, try xray and you get busted
  5. Offline


    odetopenguins784 likes this.
  6. Offline


    All of the plugins you've posted need to follow the submission guidelines...
    Plugin Release/Submission Guidelines
    For example your title needs to have the categories capitalised (Admin -->ADMN)
    Your missing your plugins version number in the title as well as a description in the title.
  7. Offline


    How does this plugin work? I'm guessing it compares the diamond/stone ratio?
  8. Offline


    where s = stone and d = diamond
    100 / ((s + d) / d) > 9 --- then you're xraying for sure
  9. Offline



    First run:
    2011-07-20 03:08:04 [SEVERE] Error occurred while disabling Xray Detection v0.1 (Is it up to date?): null
        at MainXrayDet.onDisable(
        at org.bukkit.plugin.SimplePluginManager.disablePlugin(
        at org.bukkit.plugin.SimplePluginManager.disablePlugins(
        at org.bukkit.craftbukkit.CraftServer.disablePlugins(
        at net.minecraft.server.MinecraftServer.stop(
  10. Offline


    never happens to me, line 130 has nothing to do with the "onDisable" method either, can you redownload it? maybe you happened to grab an old version.
  11. Offline


    Strange. Works now. I'm guessing it broadcasts a message to all online OPs if someone is x-raying?
  12. Offline


    yes it does. every 60 seconds, it will tell all op's a list of everyone who is xraying. If you don't think they are, you use the /legit command, otherwise use the /ban and it will skip them next message send.
  13. Offline


    Upload the source please?

    Nevermind, you included the source in a zip file. Thanks.

    Features I recommend:
    • Permissions support; If you have a certain permission node, the list of cheaters would be broadcasted to you
    • Multiworld support; Your current setup only works if you don't have multiple worlds and your plugin will also break if a server admin doesn't have the nether enabled because in Util1, it doesn't check if a certain world exists before trying to retrieve it and apply it to that variable (can't remember the naming)
    • Logging; Export a list of cheaters to a log file for the server admin to check. What if someone was xraying when an OP wasn't online?
  14. Offline


    Your first 2 are great suggestions, thanks! As for the last one, it does do that (sort of). I create a text file called "POSSIBLE_CHEATERS.txt" in the xray folder
    you can reference that at any time.

    I changed the plugin so it doesn't need to access any of the worlds (the normal one or the nether). It should work no matter what your settings are :)
  15. Offline


    Oh, didn't realize that. I didn't really go in-depth. I just browsed the source because I like to look at that stuff before I apply it to my production server. Anyway, if you need help, I'm here.
  16. Offline


    update link?

     2011-07-20 20:25:42 [SEVERE] Error occurred while enabling Xray Detection v0.1 (Is it up to date?): Index: 1, Size: 1
    java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
     at java.util.ArrayList.RangeCheck(Unknown Source)
     at java.util.ArrayList.get(Unknown Source)
     at Util1.Initialize(
     at MainXrayDet.onEnable(
     at org.bukkit.plugin.SimplePluginManager.enablePlugin(
     at org.bukkit.craftbukkit.CraftServer.loadPlugin(
     at org.bukkit.craftbukkit.CraftServer.enablePlugins(
     at net.minecraft.server.MinecraftServer.e(
     at net.minecraft.server.MinecraftServer.a(
     at net.minecraft.server.MinecraftServer.init(
  17. Offline


    When did you last download it?
    Because there is no class called "Util1", there is however "UtilXRAY". I redownloaded with the link I provided, it's working fine.
  18. Offline


    well u fix the link. old download had the src in the .jar. odd..........
  19. Offline


    Nice job on the the plugin, we just tested it out a bit on our server. Could you clarify a couple things, though? Am I right in that it records per login session and not over the lifetime of a player? We noticed that the alert will go off even when the person logs out and in, but that's because it's referencing that .txt file, correct? Given that, once a person is pardoned with /legit, is there a way to undo that? Does /legit effectively protect a player from further detection for that login session? Could it perhaps record the coords of the person at the moment the ratio trips?

    Finally, could you make ratio sensitivity configurable? Right now, it works out to about 10 stone for ever 1 diamond. I think I'd like to bump that up, maybe even 20 for every 1. Sorry, I know I must be droning, but I think this has some great potential!
  20. Offline


    It records every block the player has dug up until the last time they were pardoned. the /leigit command just resets both the stone and diamond values. It has nothing to do with whether or not they're logged in.
  21. Offline


    hey what are the permission
  22. Offline


    I apologize if this is obvious once you download it, but I'm at work and I'm curious: does this detect gold as well as diamonds? Without that it wouldn't work too well since gold is the economic backbone to my server, not diamonds :X
  23. Offline


    At the moment, it only supports diamonds.

    I figured that gold wont work, because when it's dug, it gives a gold ore. If users decide to dig and place gold ores repeatedly it'll trigger the xray detection. If you REALLY want gold ore detection I'll add it, but please tell me.

    I also made an update (redownload from the main post). This update fixes the bug where you can't pardon someone who is offline.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 17, 2016
  24. Offline


    gold detection would be good, maybe make it optional?
  25. Offline


    23:33:25 [SEVERE] Could not load 'plugins/Xray detection.jar' in folder 'plugins': error in opening zip file
            at Method)
            at java.util.jar.JarFile.<init>(
            at java.util.jar.JarFile.<init>(
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(
            at org.bukkit.craftbukkit.CraftServer.<init>(
            at net.minecraft.server.ServerConfigurationManager.<init>(
            at net.minecraft.server.MinecraftServer.init(
  26. Offline


    so yeah i had a hard time figuring out how this logs info and how it works from the description. how does this alert you exactly?? i dont get the stone to diamond ratio thing? is it ANYTHING like founddiamonds plug in??
  27. Offline


    I Would love you so much if you added permissions to this. This is a great plugin and already caught many people using x-ray on my server the first day.
  28. Offline


    need permissions 4
  29. Offline

    Live or Die

    its awasome plugin :)
    i would love if you make a permission that said "i think XXX is x-raying" and not op-only:p
    i hope you do that :)
  30. Offline


    This is a great start, but multi-world support and gold/iron detection should be priorities for sure.

Share This Page