promotional bannermobile promotional banner

Custom Regex Chat Tools

Censor without players noticing!
Back to Files

Custom-Regex-1.8.8

File nameCustom-Regex-1.8.8.jar
Uploader
zer0dashomlzer0dashoml
Uploaded
Feb 10, 2019
Downloads
324
Size
27.3 KB
File ID
2671343
Type
R
Release
Supported game versions
  • 1.12
  • 1.11
  • 1.10
  • 1.9
  • 1.8.1

What's new

#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!

This mod has no additional files