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

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

  1. Offline

    orange451

    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
    Features:
    • checks if players are mining way too many diamonds than they should be.
    Download the plugin here

    WORKS WITH PERMISSIONS 2.7.4
    The node to use, is "xraydetection.admin"

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

    Carbon0x

    Won't /pardon conflict with the unbanning command?

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

    orange451

    Right...
    what else should it be? :/ pardon makes sence

    [edit]
    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

    GarretSidzaka

    I USE this plugin frequently . the instant we added this to MineSworn.com, 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

    woodzy

    trying!!
     
    odetopenguins784 likes this.
  6. Offline

    shadrxninga

    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

    ichingpow

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

    orange451

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

    WNxRev

    @orange451

    First run:
    Code:
    2011-07-20 03:08:04 [SEVERE] Error occurred while disabling Xray Detection v0.1 (Is it up to date?): null
    java.lang.NullPointerException
        at MainXrayDet.onDisable(MainXrayDet.java:130)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:128)
        at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:885)
        at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:280)
        at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:273)
        at org.bukkit.craftbukkit.CraftServer.disablePlugins(CraftServer.java:147)
        at net.minecraft.server.MinecraftServer.stop(MinecraftServer.java:312)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:391)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  10. Offline

    orange451

    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

    WNxRev

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

    orange451

    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

    WNxRev

    Upload the source please?

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

    @orange451
    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

    orange451

    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.


    [EDIT]
    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

    WNxRev

    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

    emoknight

    update link?

    Code:
     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(Util1.java:18)
     at MainXrayDet.onEnable(MainXrayDet.java:140)
     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
     at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:878)
     at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:272)
     at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:162)
     at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:146)
     at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
     at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
     at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
     at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  17. Offline

    orange451

    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

    emoknight

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

    miketoth

    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

    orange451

    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

    T3AMR3ACH

    hey what are the permission
    things
     
  22. Offline

    LucidLethargy

    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

    orange451

    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

    omnija

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

    thedudeguy

    Code:
    23:33:25 [SEVERE] Could not load 'plugins/Xray detection.jar' in folder 'plugins':
    java.util.zip.ZipException: error in opening zip file
            at java.util.zip.ZipFile.open(Native Method)
            at java.util.zip.ZipFile.<init>(ZipFile.java:114)
            at java.util.jar.JarFile.<init>(JarFile.java:135)
            at java.util.jar.JarFile.<init>(JarFile.java:99)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:60)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:207)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:130)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:128)
            at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:97)
            at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:51)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:132)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
     
  26. Offline

    clitcomander

    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

    Lay295

    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

    Hanswalter123

    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

    mcanusrules

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

Share This Page