[ADMIN] CmdBlocker - Kick player that are using certain commands. [740]

Discussion in 'Inactive/Unsupported Plugins' started by Hretsam, Apr 15, 2011.

  1. Offline

    Hretsam

    CmdBlocker - Kick player that are using certain commands.
    Version: v1.1

    This was the Antixraycmd plugin, but after a few changes i decided to change the name.

    This plugin kicks and/or bans players that use a command that are listed in the config file.
    The default is set up for a simple and light protection against the '/ixrai12345' command.
    (This is a command that is issued when a player joins a SMP server with the Xray mod installed.) But you can add other commands very simple. You can configure every command the way you like. More info in the config file itself.

    I added NewbyModder's own xray protection in it. But this can be turned off in the config file.

    Features:
    • Warns players that use a command
    • Kick/Ban user after a number of violations. (usages of a command)
    • Partial lightweight Xray solution
    • Permissions support (can be turned off)
    • Alternative of Permissions to allow players to use a command
    • McBans support (can be turned off)
    • NewbyModder's own xray protection. (can be turned off)
    • Runtime config reload with "/cbreloadconfig"
    Notice:
    This plugin does not provide a full protection against the Xray problem!

    To get full protection use the plugin of asdaarg, but this will use a lot of resources. This mod can be found here.

    Download file here. (version v1.1)
    Source (github)

    Default config.yml (open)
    Code:
    ## Checks the version of the config file, dont touch this.
    configversion: 2
    ## sends the message ingame. can be set to 'admin', 'global' or 'none'
    ingame message target: Global
    ingame message: Player %player% used the Xray command and got %result%!
    ## Username used on mcban, use a contact name
    mcban username: server
    use permissions: true
    ## The permission node of an admin
    admin node: cmbblocker.admin
    ## removes all records when the player gets banned.
    ## I suggest let this stay on true, as it reduces the database size over time.
    delete record on ban: true
    ## adds NewbyModder owns disable script;
    xray protection: true;
    ## Prints all the commands on startup
    debugmode: true
    
    commands:
        ixrai12345: ## xray mod command, is send when player enters server. Also used for the xray protection!
            ## how many violantions till getting kicked
            kick violations: 2
            ## how many violantions till getting banned
            ban violations: 2
            ## kick/ban after hit violation
            kick: true
            ban: true
            ## log usage
            log: true
            ## use mcbans
            mcbanlist: false
            ## node for permissions
            permission node: cmdblocker.command.ixrai12345
            ## Messages
            warning message: This command is blocked, to avoid getting kicked, stop using it!
            kick message: You are kicked from this server!
            ban message: You are banned from this server!
            ## Allowed users (use this when you dont got permis
            allowed users:
    
    changelog (open)

    Changelog:
    Version 1.1:
    • Updated to 733
    • Added warnings
    • Fixed null reference
    • Changed command to avoid collision with other plugins
    • Added creating of config file when none exists
    Version 1.0:
    • Changed name
    • Added Permissions and McBans support
    • Added SqlLite usage, instead of loading it into the memory
    • Added config file
    • Added logger
    Version 0.1:
    • Initial Release
     
    MaMaxGER likes this.
  2. Offline

    Juze

  3. Offline

    Hretsam

    Ok i changed the title.
    Cant think of an other title for this plugin (suggestions?)
    I tested it against the 677 build, and it works fine for me.
     
  4. Offline

    Kalais

    I was just going to request this. It's just what I was looking for.
     
  5. Offline

    Teknology

    Name suggestion (I'm really bad at it): NoMoreTransparency
    I like it, there should be more mod blocking plugins, for people who want a server with no cheating. Here's a diamond for your work [diamond]
     
  6. Offline

    stewie1million

    So this works against the X-Ray texture pack?
     
  7. Offline

    Birdie

    Just banned 4 players just by searching the server.log for /ixrai12345

    Thanks for the plugin, and the tip!
     
    Nate204 likes this.
  8. Offline

    Hretsam

    No, this only works for the XRay Mod. To also protect against the XRay texture packs follow the link to the plugin of asdaarg.
    But you will need good server specs for that one.

    To the rest:
    I hope i can help some people with this, if anybody wants something added. Feel free to ask.
    I will add a config file and Permissions compatibility soon.
     
  9. Offline

    jefe323

    can you add permissions for this so certain people/groups can use the mod?
     
  10. Offline

    Giuseppe

    its posible that this plugin ban with McBan

    with a log file
     
  11. Offline

    Hretsam

    Yes, i will see if i can add that

    Hmm, i'll do my best
     
  12. Offline

    Manji

    why do i get a .zip with the source files at mediafire, and not the .jar like it tells me?

    "AntiXrayCmd.jar
    (6.48 KB)
    Click here to start download from MediaFire.."
     
  13. Offline

    Hretsam

    I am getting a .jar file.
    If your getting a zip try renaming it to .jar
     
    Manji likes this.
  14. Offline

    Manji

    thanks, it worked!
    :) i'm using opera, maybe that's why.. but i still feel kinda dumb now xD
     
  15. Offline

    Rick

    so this doesnt work with Minecraft 1.4_01 XRay 12.7 SMP MOD?
     
  16. Offline

    Phaedrus

    I endorse this plugin.

    Perhaps a configurable list of commands that trigger the kick. That way more cheat mod commands can be easily added. Also, could we have configurable results for each command? Say, warn 3 times, then kick 3 times, then ban? Perhaps send a notification to ops/admins too.

    We'll take back our servers for legit play eventually!
     
    Gbear and ichingpow like this.
  17. Offline

    woodzy

    i support this but doesnt the XRAY mod just hit a letter like "y" or something? if theres is a consol command that shows up i have never seen it and i have seen (/vanish FTW!) my players going stright for ore in the dark.....
     
  18. Offline

    Nate204

    Same..... muahaHAHAHAHAHAHAAHH!!!!

    I love to ban people. Thanks for the amazing plugin!
    (well, just people who don't respect others and our very very simple rules...)
     
  19. Offline

    ManBearWaffle

    Same here! Haha. It's weird how many players that I thought were legit, were actually using x-ray.

    Does this plugin support mcbans banning? That'd be great :).
     
  20. Offline

    Birdie

    by the way, XRay mod is a legit global ban reason on MCBans now
     
  21. Offline

    Lomz

    I'm grateful for people who make mods like this. Sadly, with the newest version, the /ixrai12345 doesn't show up upon login anymore.

    On top of that, he made his own plugin for server admins that stops people from using the xray mod, which doesn't work at all.

    Edit for clarification
     
  22. Offline

    anonymous

    Sadly this isnt a full proof method for stopping xray. Just one of the many mods that has xray capabilities. I prefer using plugins like FoundDiamonds to log diamond breaks.
     
  23. Offline

    Hretsam

    True, to activate it you have to press a key. But if you join a multiplayer server, you are forced to run a command without knowing.

    He changed it? I will check that.

    Not yet, working on it

    Good idea, i will add it in the next update

    I also stated that in my first post. But i tought Notch was working on something to fix this. Not sure tough

    I doesn't? I will see what i can do about that.
     
  24. Offline

    Nipper

    Not trying to be mean. But this is kind of pointless. As there was only one xray with this the 12.5 and was fixed to not display the command on join in 12.6+.
     
  25. Offline

    dslip

    Thank you, Just the information about the command let me search my logs and GLOBAL ban 8 players.

    I definately think the list of commands needs to be adaptable, as it will be cat and mouse once the XRAY mods realise we re looking for /ixrai12345
     
  26. Offline

    Phaedrus

    Notch really needs to do something to keep legit servers legit. Otherwise what's the point? The most complex gameplay we can ever hope for is instant gratification whores and griefers.
     
  27. Offline

    Hretsam

    Updated to version 1.0!
     
  28. Offline

    ephesian

    can you set to give it warningS?
     
  29. Offline

    Hretsam

    So only give out warnings, but no kick or ban?
    Sure that can be added
     
  30. Offline

    ephesian

    no like auto reply not to keep trying or kick, like 1 - 2 chances
     

Share This Page