What is CommandFilter:
CommandFilter is a command filter plugin. It can black command with custom response message and refer to other commands. This means you are able to customize commands such as /help, /version, /plugin which you are unwilling to display to players. You also can set a function/commands to an unknown commands.
Commands:
You can use both /comf and /commfilter
/commfilter reload ---reload comfig.yml
Permission: commfilter.commands.reload
/commfilter groups ---show all groups and permissions in comfig.yml
Permission: commfilter.commands.groups
You can give permission "commfilter.bypass.{command}" to bypass this command detection
config.yml:
Code (Text):
#Plugin will get groups from your permission/groups manager plugin and automatically generated in here.
#You can also set a custom group.
Groups:
#Group's name
Default:
#Group's permission
#It will ONLY detect the commands in command sender's group if player does not have any permission. But you could give the group permission to let other group's player be detected by this group's settings.
#In short, any player has this permission is equivalent to a member of this group.
#If there are any same commands in multiple groups of a player, the player's group is prefered.
Permission: commfilter.Example
#Commands you want to customize
Commands:
#Command
#Use lowercase
#Subcommand is not supported here. Please do NOT enter any space.
version:
#If true, original function of this command will be cancelled
#Default is false if not set.
CancelCommand: true
#Including the target's ReplyMsg and ExecutionList.
#Case Sensitive
#If target has aother include setting, it will also including in.
#E.g if Example.version has 'include: Default.help', it will include both Default.help and ReplyMsg.
Include: Example.version
#Reply messages
ReplyMsg:
- '&aExample 1'
- '&cExample 2'
- '&6Example 3'
#Subcommand whitelist
#Case NOT sensitive
#The subcommand in this list will NOT trigger any process in our plugin.
#E.g, player execute "/version" will be cancelled and reply with your custom message,
#but "/version subcommand1" will just responce the original message and process.
Whitelist:
- subcommand1
- subcommand2
- subcommand3
#Commands in list will be executed by this player
#Here is supported subcommand.
ExecutionList:
- me Example
- suicide
#'*'means all commands. But the commands you has been list in this group will not include.
'*':
CancelCommand: true
#For other sittings are same.
#This is an example include all settings
help:
Include: Example.version
CancelCommand: true
ReplyMsg:
- '&aExample 1'
- '&cExample 2'
- '&6Example 3'
ExecutionList:
- say Example
- suicide
Whitelist:
- subcommand1
- subcommand2
- subcommand3
#Reply message page settings
Page:
#Max rows in one page
MaxMsgInPage: 15
#Message of next page button
NextPageMsg: ' Next---->>'
#Message of previous page button
PrevPageMsg: '<<----Prev '
