Spigot CommandExecutor 1.4

Create or replace commands with list of commands, optionally executed by player/console

  1. Andross submitted a new resource:

    CommandExecutor - Create aliases, with a list of commands, executed by console

    Read more about this resource...
     
  2. Andross updated CommandExecutor with a new update entry:

    Improvements

    Read the rest of this update entry...
     
  3. Andross updated CommandExecutor with a new update entry:

    Improvements

    Read the rest of this update entry...
     
  4. Just wondering, I'm currently using a ban plugin, how would you once you ban the player, it executes a command after banning the player.
     
  5. Hello!

    This plugin only create new simple commands. You can't do this, sorry.
     
  6. Oh, okay.
     
  7. Andross updated CommandExecutor with a new update entry:

    Improvements

    Read the rest of this update entry...
     
  8. Hello,

    This is now possible with the new v1.3.

    In the config.yml file, add in the commands list:
    Code (Text):
    commands:
      ban:
      - 'yourBanPlugin:ban %arg1% %arg2%'
      - 'your command to execute after banning the player'
    Replace yourBanPlugin with the name of your ban plugin, and add as much as %argX% as you need in your command.
    Replace the last line with the command you want to execute after banning the player.

    I think you should add a permission for this new ban command, else everybody would ban everybody? :LOL:
    Simply add a line:
    Code (Text):
    commands:
      ban:
      - '%permission%mycommand.ban'
      - 'yourBanPlugin:ban %arg1% %arg2%'
      - 'your command to execute after banning the player'

    Don't forget to save the command in commands.yml:
    Code (Text):
    aliases:
      ban:
      - commandexecutor ban $1-
    Done!
     
  9. Update please!