Sueta

CommandReplacement

1.1.0

Change or cancel command if player [don't] have some permission.

·Plugin

Commands & Permissions:
commandreplacement.run.* - With this permission you don't need any other permission to replace command.

Configuration:
*You can use PlaceholderAPI placeholders in command and in replace.
*To transfer command arguments from replaced command just put $args after command in command and replace, like: command: "/pm $args" | replace: "/mail send $args"
*To replace command, with some arguments, put $args after command, like: command: "/pm $args"

commands:
  1st: ## if player don't have "essentials.gamemode", then command "/gm 1" or "/gm 1 playerName" will be changed to "/suicide".
    command: "/gm $args"
    replace: "/suicide"
    permission: "essentials.gamemode"
    needperm: false
  2nd: ## if player have "essentials.nick", then command "/nick gold" will be changed to "/nick &6playerDisplayName".
    command: "/nick gold"
    replace: "/nick &6%player_displayname%"
    permission: "essentials.nick"
    needperm: true
  3rd: ## if player don't have "essentials.afk", then command "/afk" or "/afk some args" will be changed to "/unknowncommand".
    command: "/afk $args"
    replace: "/unknowncommand" ## player will recieve unknown command message, cause this command does not exists.
    permission: "essentials.afk"
    needperm: false
  4th: ## if player don't have "essentials.list", then command "/list" will be cancelled.
    command: "/list"
    replace: "" ## no message, just cancelled command.
    permission: "essentials.list"
    needperm: false

TO-DO LIST:

  • Ability to use only certain arguments.
  • Support for regular expressions.
  • Reload command.

Similar projects

Plugin →