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

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

     
  1. Offline

    orange451

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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

    This post has been edited 4 times. It was last edited by orange451 Oct 8, 2011.
    clitcomander likes this.
  2.  
  3. Offline

    mineHAVOC

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    ya the too many open files thing is still happening for me on .6 and CB 1337 :/

    edit: removed the plugin and havent had it since.

    This post has been edited 1 time. It was last edited by mineHAVOC Nov 12, 2011.
  4. Offline

    effortless

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Players now publicly speak of their ratio, compare with each other and ask us other peoples when they are banned for xraying.

    This is a good plugin but can we please deny players to /ratio themselves?

    This post has been edited 1 time. It was last edited by effortless Nov 28, 2011.
  5. Offline

    orange451

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    fixed :)
  6. Offline

    mineHAVOC

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Was there any changes to the too many open files problem?

    I love this plugin, but it crashes my server in a day or 2 with too many open files..Like i said above, ever since i removed it, it doesnt happen
  7. Offline

    orange451

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I, and the server that hosts this plugin for me, both do not have that issue.
    Some other posts in this thread have claimed to fix them. Have you tried their solutions?
  8. Offline

    MationMac

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I think this plugin might have gotten me banned without using xray. The moderator seemed extremely determined i was hacking.
  9. Offline

    effortless

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Excellent! Much better, may I ask for support for SuperPerms (BukkitPermissions)? Our mods can't currently check the ratio of others
  10. Offline

    orange451

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    At the moment you'll have to use Permissions w/ Permissionsex
    It's the only permissions plugin I know how to use right now xP
    Moderators are supposed to teleport to the person they feel is cheating, so they can investigate. It's not 100 % accurate, but most people dont get 1 diamond for every 9 stone they dig P:

    This post has been edited 1 time. It was last edited by orange451 Dec 1, 2011.
  11. Offline

    Kademlia

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Everyone hosting Servers with 50+ players on it should not use this Tool. It will cause dramatic drops in TPS.

    @ orange451 - Sorry to say it like this but reading and writing a File on the HDD on every block break is the worst possible implementation of a block-ratio-logging tool i can imagine.
  12. Offline

    Donny

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    It works fine with 50+...

    This post has been edited 1 time. It was last edited by Donny Dec 11, 2011.
  13. Offline

    Kademlia

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    It does not. I just joined your server and it clearly lags (45ppl online) - the stars are moving back (<20 TPS). Please install LagMeter and verify your statements.

    Edit: To make it clear i did not say its XrayDetection what lowers the TPS on your server. I just said its not working fine. The lags triggered by XRD will only occur due to many people digging stones


    @orange451 should realy rewrite these codeparts. An easy approach is to use a HashMap with Key Playername and Value a Tuple of the stone and diamond values. Then you just add a Timer and mark the HashMap as serializable. The timer will write the file to HDD every X Minutes and ofc onDisable. Load would be done in onEnable.

    This post has been edited 3 times. It was last edited by Kademlia Dec 11, 2011.
  14. Offline

    Donny

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    odd I just "/debug clock" and got 18.5 TPS with 55 people 0nline.
    A WHOLE 1.5 TPS NOOOOOOOOOOOOOOOO.

    This post has been edited 4 times. It was last edited by Donny Dec 12, 2011.
  15. Offline

    orange451

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I've had this plugin being run on a server with generally 70 people on it, since I created the plugin. It works fine, no issues with latency.

    This post has been edited 1 time. It was last edited by orange451 Dec 12, 2011.
  16. Offline

    Kademlia

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yes. Thats not "working fine".
    /debug clock does not tell you anything. I mentioned LagMeter on purpos.
    http://kadcon.de/lag.html

    Programming aspects: (the parts important for you you did not quote)
    You are delegating work to the OS in a way you never should.
    There is a reason why guys like Von Neumann even invented Level1-2-3 Caches, ALU aso.
    http://en.wikipedia.org/wiki/Von_Neumann_architecture
  17. Offline

    Donny

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Mod edit (Butkicker12): Removed offensive content

    This post has been edited 7 times. It was last edited by Butkicker12 Dec 14, 2011.
    Infraction has been given for this message by Butkicker12. Details | Dec 14, 2011
  18. Offline

    Donny

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    If you don't like it there is no need to flame. Don't use it, or make one yourself. With all your "knowledge" you don't seem to have uploaded one plugin...
  19. Offline

    Kademlia

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Flaming requires an insult. I did never insult anyone here.
    I am a programer and i try to help others if i am capable to do so.

    Not uploading a plugin does not make you more or less knowing
    The same applies to uploading a plugin

    Edit: As you do not seem to apreciate help and rather insult other people the conversation has its end here on my part.

    This post has been edited 2 times. It was last edited by Kademlia Dec 12, 2011.
  20. Offline

    Donny

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Insulting someones work and telling them they used the worst possible methods is not "trying to help" Its being a self righteous pile of poo.

    This post has been edited 2 times. It was last edited by Donny Dec 14, 2011.
  21. Offline

    mineHAVOC

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    using .6, and latest RB of bukkit, it wont announce the cheater at all, and when i do /ratio <name> ingame, it resets their ratio back to 0.0

    no errors or anything
  22. Offline

    DrDewman

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    How does the ratio work?

    There's this guy with a ratio a little higher then 6. So does this mean that for every 6 stone he hits diamond? :eek: Nevermind, I have no idea. lol

    This post has been edited 2 times. It was last edited by DrDewman Dec 16, 2011.
  23. Offline

    SkyCraft

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Does this work with PermissionsBukkit? And if so, can you make a command like /xrayers, and it will display the list of xrayers on the server at that time, and include a permissions node with it, so anybody can view who is x-raying?
  24. Offline

    Gaurav1234

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    ok about what ratio is considered xray?
  25. Offline

    Paulpkyou

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    You could basically make it so when a player places a gold block there username and the block position are added to a hashmap, then you just check the hashmap when someone digs that block, if the digger's username doesn't equal the username that is set then increase the digger's mined block count. :)
  26. Offline

    orange451

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hundreds of players in a server, digging and placing gold, I can't imagine would be very efficient.
  27. Offline

    Paulpkyou

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Its not like your going to save that information for later use, it would only be until restart, and i doubt everyone would be placing gold everywhere, i know i wouldn't be unless i randomly had the urge to build a house of golden ores, you could also add a timer that would clear the data every so many minutes?

    This post has been edited 1 time. It was last edited by Paulpkyou Jan 20, 2012.
  28. Offline

    orange451

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Even then, people COULD do that, is what I'm saying.
  29. Offline

    Austin

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Please for the love of god, add a config to DISABLE the alerter. I don't want to pardon somebody just to make the fucking plugin shutup. Add a command /ackowledged To disable the alerter, but keep tracking the player.

    I have some players that just cavehunt, so they get from pretty high ratios.
    But still, I only need to be alerted ONE TIME. not once every minute.

    Converting the decimal into a percentage would be nice.
    Support for
    Gold ore
    Iron ore
    Mossy cobble
    Would be nice aswell.
  30. Offline

    Paulpkyou

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yea but its unlikely they would, just trying to give ideas to improve your plugin. >:)
  31. Offline

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    What is a good Ratio?
    Cansomeone post a picture maybe?
  32. Offline

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I always get 0.0

Share This Page