[MISC] PlgDisableCmd v2.0 - disable given commands [1.4]

Discussion in 'Archived: Plugin Releases' started by Plague, Feb 28, 2011.

  1. Offline

    Plague

    PlgDisableCmd - Disable given commands
    Version: v2.0

    Since there was some demand to disable some commands without the use of permissions, I come to the rescue :)
    Just create a file "plugins/PlgDisableCmd/disabled.txt" and put commands (without the / character) you want to disable there on separate lines. That's it!

    Features:
    Can disable any command, including hardcoded bukkit /help and /plugins or minecraft /give.

    Download (source code in the .jar)
    Download OP version (OPs can still use those commands)

    [​IMG]


    Changelog:
    Version 2.0
    • updated to new bukkit API
    Version 1.3
    • More aggressive code, should truly block all commands, even for plugins not respecting the right way to handle commands.
    Version 1.2
    • Craftbukkit 600 compatibility
    Version 1.1
    • Fixed a bug - plugin was not case-insensitive
    Version 1.0
    • Initial release
     
  2. Offline

    Plague

    on windows you can just rename it to AAAPlgDisableCmd.jar
    on linux you can try that, but maybe you have to remove Factions, copy some files (whatever files) there, then copy Factions back and remove those garbage files, that should do it
     
  3. Offline

    MentalPatient

    This is what I get...

    2011-05-11 08:50:40 [SEVERE] Could not load 'plugins\PlgDisableCmd.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>(Unknown Source)
    at java.util.jar.JarFile.<init>(Unknown Source)
    at java.util.jar.JarFile.<init>(Unknown Source)
     
  4. Offline

    Plague

    You must have downloaded it badly
     
  5. Offline

    MentalPatient

    Umm, nope.
     
  6. Offline

    Plague

    since it clearly says that the file is not the file it should be, you must have ;) Which link did you use?
     
  7. Offline

    MentalPatient

  8. Offline

    Plague

  9. Offline

    MentalPatient

    No, I downloaded several times so I have a few copies. I compared them all, CRC, etc... What actually seems to be the problem is when I upload to the host, something happens. No idea really what happens, but it was getting corrupted. I just uploaded it and noticed a different filesize as reported by the host's control panel. Strange. Ah well working now with one command disabled. Thanks for the plugin.
     
  10. Offline

    Magiq

    just wondering.. where am i supposed to be putting this "disable.txt" file? do I put it anywhere in the plugins folder? or do I put it somewhere else, if you can be more specific, would be appreciated.
     
  11. Offline

    Plague

    Read the original post.
     
  12. Offline

    Magiq

    Like i said... can you please be more specific? could you just tell me where to put this "disabled.txt" file? please be more specific than telling me the original post.. I already read it 5 times... thanks in advance
     
  13. Offline

    Jeyge

    Hmmm
    Perhaps try plugins/plgdisablecmd/disabled.txt.
     
  14. Offline

    Magiq

    I dont understand.. can you be more specific? are you telling me I'm supposed to make a folder in the "Plugins" folder called "plgdisablecmd" then in that folder I create the "disabled.txt" text document?... no one is being specific....
     
  15. Offline

    andrewkm

    Posting in my plugin threads with a 1.6.6 Minecraft RB CB Build #818 report.
    Plgsdisablecmds working perfectly fine with this build. Thank you for the continued support of this plugin!
    All disabled command dont work for users and do for OPs. All is well. :)
     
  16. Offline

    Plague

    thanks for testing
     
  17. Offline

    mickael002

    Doesn't Work on 1.6.6 !
     
  18. Works fine.
     
  19. Offline

    Plague

    As you can see people confirm it working, the error is not in the plugin then.
     
  20. Offline

    mickael002

    Ok sorry I spoke too soon.

    Es it possible to send an error message when the command is disabled via this plugin?

    Error: This command is disabled.
     
  21. Offline

    Plague

    I think this would have to be optional, since it's mostly better to not even give the user acknowledgment of the command.

    If I find time today I'll add another version then..
     
  22. Offline

    NEO

    Doesnt seem to work on commands using variables?

    /msg can still be used but commands such as /plugins are disabled.
     
  23. Offline

    Plague

    It works the same, but some plugins use (although they really shouldn't) different command processing. I think it would help you if you made sure my plugin is loaded first.
     
  24. Offline

    NEO

    Hasn't the way plugins load changed since the latest RB? I still attempted renaming the jar, but its still not working for /msg.
     
  25. Could you add some method to either:
    - Allow ops to bypass this
    - Allow players with or without a certain permission node to bypass this

    Would be great, ty :)
     
  26. Offline

    Plague

    Umm that's what the OP version is for
     
  27. Sorry I'm blind, I've had this for ages, never noticed it ><
     
  28. Offline

    andrewkm

    @Plague
    If possible, permission node would be great to let my supermods/mods use a couple of the commands that i block for regular users.
    -
    Btw thanks for plugin, still working great on #857 (Going to 860 as soon as i schedule downtime)
     
  29. Offline

    Plague

    I'm never ever supporting permissions in my plugins. use the OP version if you want ops to have commands that users do not
     
  30. Offline

    andrewkm

    Yes I got OP version.
    Alright understanable, guess your waiting on bukkit perms. Seen lots of devs do that its all good.
     
  31. Offline

    Andrewkroger1

    Hi, probably a stupid question but...
    Is it possible for you to add groups in your plugin, I really have trouble with permissions and no one will help me set it up.
    Idk if this will be easy (because I have no idea about code LOL) but because you can disable commands for all,
    You could only make it for some...EX:
    Andrewkroger1:
    /banip
    //wand
    Blah blah
    Blakethecat, melson:
    /ban
    Blah blah
    + because I am a complete noob at these things can you make it so I can disable some op commands
     

Share This Page