[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

    try without plugins
     
  3. Offline

    Mitch C

    I am trying to stop the tp command but whenever i start the server it says no commands to disable
     
  4. Offline

    Plague

    where do you put the "tp" command?
     
  5. Offline

    Mitch C

    i opened disabled.txt file with notepad and just wrote tp is that wrong?
     
  6. Offline

    Plague

    no, looks alright, maybe put a new line at the end, but I think it's not necessary and then when you load my plugin everything should work and say there is 1 disabled command.
    If you do it on linux make sure that the user running server can access disabled.txt
     
  7. Offline

    eRko16

    What about permmisions please, Only admin will can use it.
     
  8. Offline

    Plague

    This is made for people not having them, since permissions itself is made to prevent people from using commands, whats the point of combining this one with permissions?
     
  9. Offline

    BioRage

    Does this save server resources if you disable alot of commands?

    Or is that a stupid question since plugin's that are loaded already take up x->y
     
  10. Offline

    Plague

    well it does take a little memory for every command stored, but it's really a small amount. In contrast with world data it's practically zero.
     
  11. Offline

    The PC Tech Guy

    Can you make a version where ops are still able to access the disabled commands?
     
  12. Offline

    Plague

  13. thank you, i was going to ask the same thing! :)

    is it hard to make mods? i am going to try to learn java soon and i just created my first website. i would love to get involved with mod-creating. know anyone who has a little bit of spare time who would like to help me learn the basics?
     
  14. Offline

    Plague

    Not really, bukkit devs do such a great job that making a plugins is relatively easy
    if you know how to code of course.
     
  15. Offline

    Eymas

    this is a pretty hard problem:
    I have the plugin but well...
    It blocks absolutely nothing!

    My server is an All-OP server meaning everyone is OP. Yeah, They build big slabs of houses and survive. Yet:
    Code:
    From one of the many server logs:
    /time set 0
    /time set 15000
    /time set 0
    /time set 15000
    /time set 0
    /time set 15000
    /time set 0
    /time set 15000
    /time set 0
    /time set 15000
    /time set 0
    /time set 15000
    /time set 0
    /time set 15000
    /time set 0
    /time set 15000
    /time set 0
    /time set 15000
    /time set 0
    /time set 15000
    The only command I want to delete SO Bad.

    Any way to solve it?
    (I also use WorldGuard, Craftbook, WorldEdit, Weathergod, HeroicDeath(for the lol), LoginMessage, and of course your sadly broken addon =( )
    And the recent craftbukkit build ofcourse
     
  16. Offline

    Plague

    if you want to only block /time set, then this plugin will not help you, it would have to be more sophisticated.

    Some plugins do not respect that the message got cancelled so it doesn't work on them, I could make an aggressive version that would maybe change the command itself, but that would be sort of a hackish solution... But I could try it that way.
     
  17. Offline

    Plague

    Okay I created a more aggressive blocking of commands, should work for all plugins now, hopefully.
     
  18. Offline

    andrewkm

    [726] + [1.3]Disables /help from essentials
    but wont disable /plugins from bukkit
     
  19. Offline

    Plague

    just tested, works for me
     
  20. Offline

    andrewkm

    My config file looked like
    Code:
    /help
    /plugins
    
    Didnt work...
    So i did
    Code:
    plugins
    help
    
    And it works.
    Thank you very much for this plugin.
    By the way any chance this could ruin anything in other plugins/permissions?
    Like is it totally safe to use with 20+ plugins that i have, all running stable at the moment.
    All im disabling is essentials help and bukkit plugins thats all :p
     
  21. Offline

    Plague

    Shouldn't break anything, since it only affects the commands you specify and changes them.
     
  22. Offline

    andrewkm

    Alright thank you very much, and huge thanks on the OP version thats the one im using.
    Any chance of future having permissions compatibility? So i can give a bypass to my moderators?
     
  23. Offline

    Plague

    Ni since this is a replacement for permission-based disabling.
     
  24. Offline

    Phanku

    Thanks for the plugin.. works great!
     
  25. Offline

    Unscrewed

    Hey there o0Azza0o,

    Remember we were the biggest friends ever in the land of delicious lollipops and candycanes?
    Well? I do.. BTW. @Plague Thanks for the plugin man! :3
     
  26. Offline

    leslieliang

    Can't seem to block /f home from Factions v1.1.7. Help please?
     
  27. Offline

    Plague

    Have you tried the latest version of this plugin? because that changes the command itself.
    If not helping, make sure this plugin is loaded first.
     
  28. Offline

    leslieliang

    Yup. I have the newest version. I have the OP version. I know that it works because other players on the server can not use /version, which is one of the commands I blocked.
     
  29. Offline

    Plague

    So, check if the plugin is loaded before factions.
     
  30. Offline

    leslieliang

    Oh! Maybe that's why. How make factions start before PlgDisableCmd?
     
  31. Offline

    Mitch C

    can someone make a tutorial on how to do this plz cause mine still says no commands to disable when i start server
     

Share This Page