main/Commands & Permissions Index/v0.0.3a
Commands, Permissions, & config.yml
Commands:
| Command | Description | Usage |
|---|---|---|
| pfilter | Displays current version | /pfilter |
| pfilter enabled on|off | Toggles the plugin on or off | /pfilter enabled on /pfilter enabled off |
| pfilter whitelist add|remove {item} | Adds/removes an item to/from the whitelist | /pfilter whitelist add {item-to-be-added} /pfilter whitelist remove {item-to-be-removed} |
| pfilter whitelist on|off | Toggles the whitelist on or off | /pfilter whitelist on /pfilter whitelist off |
| pfilter blacklist add|remove {item} | Adds/removes an item to/from the blacklist | /pfilter blacklist add {item-to-be-added} /pfilter blacklist remove {item-to-be-removed} |
| pfilter blacklist on|off | Toggles the blacklist on or off | /pfilter blacklist on /pfilter blacklist off |
Permissions:
| Permission | Description | Children |
|---|---|---|
| PhantasmaFilter.* | Gives access to all commands | PhantasmaFilter.control.*: true |
| PhantasmaFilter.control.* | Gives access to all plugin control commands | PhantasmaFilter.control.enabled: true PhantasmaFilter.control.lists: true |
| Permission | Description | Default |
|---|---|---|
| PhantasmaFilter.control.enabled | Allows player to use /pfilter enabled command (Enable\Disable the plugin) | false |
| PhantasmaFilter.control.lists | Allows player to use /pfilter whitelist add|remove Allows player to use /pfilter whitelist on|off Allows player to use /pfilter blacklist add|remove Allows player to use /pfilter blacklist on|off | false |
config.yml
Important Note: All messages from Phantasma Filter are prefixed with 'pf:', so if you'd still like status/error messages from the filter, leave 'pf:' in the whitelist.
enabled-on-load: false whitelist: enabled: true list: - 'pf:' - 'chat:' blacklist: enabled: false list: - 'You have been healed' language-filter: enabled: false replacements: - cat - dog - peaches - 'cell phone' - 'RADIO-EDIT' - '@#$%^&' filtered-words: - fork - 'bad words'
| Config Option | Description | Default Value |
|---|---|---|
| enabled-on-load | Controls whether or not the plugin is enabled when loaded | false |
| whitelist.enabled | Controls if the whitelist is enabled | true |
| whitelist.list | Contains the list of whitelisted items | N/A |
| blacklist.enabled | Controls if the blacklist is enabled | false |
| blacklist.list | Contains the list of blacklisted items | N/A |
| language-filter.enabled | Controls if the language filter is enabled | false |
| language-filter.replacements | List of words used as replacements for words matching languagefilter.filtered-words | N/A |
| language-filter.filtered-words | List of words to be replaced with a random selection from languagefilter.replacements | N/A |