How to remove command /plugins ?

Discussion in 'Bukkit Help' started by awaping, Dec 8, 2011.

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

    awaping

    Hi all, I want to know how to remove /plugins command on my server. (Sorry for my English, I'm french ^^)
     
  2. Offline

    EdwinRophe

    By using permissions, but I am by no means en expert (I am using Bukkit Permissions)
     
  3. Offline

    Greylocke

    There are plugins to block commands, but here is a really simple way to do it.

    In your minecraft folder, find a file called bukkit.yml
    Open it and look for a section that looks like this:
    Code:
    aliases:
      icanhasbukkit:
      - version
    add two aliases (include the spaces!) so that the section looks like this:
    Code:
    aliases:
      icanhasbukkit:
      - version
      plugins: []
      pl: []
    • make sure to line things up properly -- it is important!! Those are two spaces, not tabs in front of the words, and one space after the colon :
    • notice that those are square brackets [] not curly {}
    • save the file and restart your server.

    What you've done is make an alias that overrides the plugin commands (/plugin, /pl) with its own command: [], which does nothing. So when someone tries to peek at your plugin list, your new command runs instead and the player will get the "Unknown command" error. :)
     
  4. Offline

    saul100

    Another way would be giving negative permission nodes, for example:

    /plugins
    Code:
    - -bukkit.command.plugins
    /version
    Code:
    - -bukkit.command.version
    Otherwise, plugins can do this, such as Vanilla.
     
    TNTUP likes this.
  5. Offline

    Milkywayz

    Wow thank, now i don't need a plugin for that. XD
     
Thread Status:
Not open for further replies.

Share This Page