Custom-Regex-1.8.8

Details

  • Filename
    Custom-Regex-1.8.8.jar
  • Uploaded by
  • Uploaded
    Feb 9, 2019
  • Size
    27.33 KB
  • Downloads
    291
  • MD5
    49c68a8ce6aa9f82b1b2beafe25be522

Supported Bukkit Versions

  • 1.12
  • 1.11
  • 1.10
  • 1.9
  • 1.8.1

Changelog

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