-
Notifications
You must be signed in to change notification settings - Fork 4
3. Command Blocking
lokka30 edited this page Jan 26, 2021
·
9 revisions
Need to block players from accessing your plugins list?
Ever wanted to block specific arguments of commands, such as home
in /f home
?
Here are some examples that will hopefully get you going.
These are the lines to add to your commands list if you wish to block these command examples.
- Use
/say
- Use
/version* WorldEdit
- The
*
character afterversion
indicates to CommandDefender that the command/argument is required in that position but it is not blocked.
- The
- Use
/f* home
- Will allow all
/f
commands except when the first argument ishome
- Will allow all
- Use
/plot* visit* 3
- Will allow all
/plot
commands and/plot visit
commands except when the third argument is3
.
- Will allow all
- Use
/* * * Notch
- Will allow all commands unless the third argument is
Notch
- Will allow all commands unless the third argument is
- Use
/jeff* jane
- Use
/hello* \*
- The
/*
part is converted to*
by CommandDefender as it indicates to the plugin that you want to block*
but not allow any commands as if you used*
instead of\*
. This technique is used in programming and is named 'escaping'.
- The
Join the ArcanePlugins Discord Server so a developer may assist you.
Join the ArcanePlugins Discord Server if you would like assistance or if you want to have a chat :)