#Commands: /cregex reload - reloads the config.yml
#Permissions:
#zerodasho.customregex.generic - Allows usage of /cregex
#zerodasho.customregex.generic.reload - Allows usage of /cregex reload
replace:
#Name of regular expression
howdy2hello:
#Regular expression - if a chat message matches the regex, it will be replaced by the replacement message
regex: (?i)([Hh])owdy (.*)!
#Replacement message
replacement: $1ello $2!
#Player must have this permission for message to be replaced
permission: zerodasho.customregex.generic
#If true, the message changes for everyone except the sender. Useful for censor.
silent_replace: true
#Entire message must match the regex, not just a segment
must_match: false
# EXAMPLE:
#[Donator] Guy: Howdy Guy2!
# Becomes:
#[Donator] Guy: Hello Guy2!
commands:
#Name of regular expression
broadcast:
#Regular expression - if a chat message matches this regex, the following commands are run
regex: (?i)bc (.*)
#Player must have this permission for commands to execute
permission: zerodasho.customregex.reload
#If true, the chat message is canceled.
cancel_chat: true
commands:
#Command to run
- command: say $1
is_player: false
# EXAMPLE:
#[Donator] Guy: broadcast Hello everyone!
# Runs command:
#[Server] Hello everyone!