What plugin does this server use to disable /plugins?

Discussion in 'Bukkit Discussion' started by honam1021, Feb 3, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    honam1021

    I want to know what does team9000 uses to disable /version and /plugins.
    It is not using permissions or SLAMP,what does they use?
     
  2. Offline

    Afforess

    It could be a modified CB and not a plugin. ;)
     
  3. Offline

    RROD

    It's probably a custom plugin that overrides built-in commands. It's not hard to make if you want me to quickly build one.
     
  4. Offline

    efstajas

    Just add an empty alias to your bukkit.yml. It then simply displays nothing. I, personally, have set up a page of my help plugin which is opened when doing /plugins. It reads "Nope, Chuck Testa".

    Afforess Why would someone modify craftbukkit for that? :O
     
  5. Offline

    Afforess

    I didn't say it was - it just could be.
     
  6. Offline

    Intelli

    Just use this:

    Code:
    @EventHandler
    public void onPlayerCommandPreprocess(PlayerCommandPreprocessEvent event) {
      String[] split = event.getMessage().split(" ");
      if (split.length < 1) return;
      String cmd = split[0].trim().substring(1).toLowerCase();
      if (cmd.equalsIgnoreCase("plugins") || cmd.equalsIgnoreCase("pl")){
        event.setCancelled(true);
      }
    }
    
    -MineRealm

    Edit: Also, be aware, disabling these commands will scare away some players. People like knowing what the server is running.
     
  7. Offline

    JohnTheRipper

    I use rTriggers myself to display a error message, but I could also just have it do nothing, or kick the player, etc.
     
  8. Offline

    SCanfield

    Where does that code go??
     
  9. Offline

    ZachBora

    Nocheat lets you disable it.
    Or maybe just in nocheat+
     
  10. Offline

    JOPHESTUS

  11. Offline

    Rjames426

    Just find the disabling node for whatever permissions plugin you use, for PermissionsEX its just adding a dash in front of the node and it disables it. "- bukkit.command.plugins" is the abled node and "- -bukkit.command.plugins" is the disabled node.

    Like this if it helped you!
     
  12. Offline

    Rjames426

    Could you PM me more information about "adding an empty alias to your bukkit.yml" I don't fully understand this.
     
  13. Offline

    efstajas

    Sure:
    Code:
    aliases:
        # This creates a new command called "canihasbukkit", which when used it actually performs "version"
        canihasbukkit: version
     
        # And this will execute both "save-all" and then "stop" when you type "savestop"
        savestop: [save-all, stop]
     
        # If a command already exists called "give", it will be rewritten. This is handy if you've two plugins
        # fighting for the same name.
        give: somepluginsgive
     
        plugins: derp
        pl: derp
    Like this you make the server execute /derp when someone types /plugins, resulting in "Unknown Command". I believe if you just write nothing (only plugins: ) it will simply display nothing, I'm not 100% sure about that though.
     
  14. Offline

    Rjames426

    You saying this goes in the Bukkit.yml . . . where exactly? Tutorial??
     
  15. Offline

    efstajas

    There should be this section in the bukkit.yml. If not, just add
    Code:
    aliases:
        plugins: derp
        pl: derp
    To the end.
     
  16. Offline

    Rjames426

    I assume I could any command for any plugin and this should work?
     
  17. Offline

    efstajas

    Yep. If you want more options like Variables or even scripting, try CommandHelper.
     
  18. Offline

    chaseoes

    Everyone here avoids the simple answer!
    Bukkit has built in permission nodes to disable those.
    Code:
    bukkit.command.plugins
    bukkit.command.version
    
     
  19. Offline

    Rjames426

    Thanks for repeating what I had said on post #11.
     
  20. Offline

    chaseoes

    No problem, glad I could help out. :D
     
Thread Status:
Not open for further replies.

Share This Page