Plugin Request Replace Message ( Finished )

Discussion in 'Plugin Help/Development/Requests' started by raymart23, Jun 14, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    raymart23

    Plugin category: Chat Related

    Suggested name: Replace Message or something good

    What I want: I want a looks like noswear plugin words would be getStringList at config and if message contains to a words at config the message would be *** ( should get the length of the word )

    Ideas for commands: No commands needed for this plugin.

    Ideas for permissions:
    • replace.bypass | bypass replacement

    When I'd like it by: anytime
     
  2. Offline

    Ruptur

  3. Offline

    raymart23

  4. Offline

    Ruptur

    @raymart23
    Commands(None):

    Permissions:
    Code:
    - ireplace.bypass  - Bypass all replacements
    
    Config:
    Show Spoiler

    Code:
    # \----------------------------------------------/ #
    # |          iReplace Configuration File        | #
    # |              Plugin by Ruptur               | #
    # /----------------------------------------------\ #
    
    # Please like the post and follow me for moh :)
    # Color codes support (&)
    
    # Plugin iReplace
    # Created by Ruptur on 08/06/2015.
    # Bukkit Ruptur | http://bukkit.org/members/ruptur.91042434/
    # Skype Mr.wongy | London => for help / more plugins
    # Contact me via Bukkit forums for help or more plugins
    
    
    # ** - indicates you are able to use '&' for colors.
    
    words: # There are two type of configuration
        # You must include:
        #
        # [replacement] - replacement character OR [replacement_string] - replacement word(s)
        #
        # [ignore_casing] - Whether the casing of the word is ignored.
        #
        # You CAN inclue:
        #
        # [start_index] - The starting index of what you are seaching (examples below)
        #
        # [end_index] - The end index of what you are seaching (examples below)
    
        # First is having a one letter character, this case a '*'
        # For this you use replacement : 'x' not replacement_string
        #
        # You MUST include :
        # [repeat] - Whether the character is repeated to the length of the word (only for replacement NOT replacement_string)
        # [color] - The color of the replacement character (only for replacement NOT replacement_string)
    
        poop: # The word you want you replace
            replacement: '*' # The replacement character - you can then repeat this
            ignore_casing: true # Whether the casing of the word 'poop' is ignored. If true POOP and pOOp will be replaced
            repeat: true # If this is true the replacement character will be repeat for the length of the word 'poop'
            color: '7' # The color of the replacement
    
    
        # The second type is having a replacement string. This will search for the word you want to replace and replace it
        # with another word.
        # So obvoiusly this means you cannot repeat it and dont have to use one color
        #
        ruptur is awesome:
            replacement_string: '&b&lWe know!, he really is' # **
            ignore_casing: true
    
        # (if you censored word(s) is 'harry is bob's father' and want to replace ONLY the 'bob' with 'john')
        harry is bob's father:
            replacement_string: 'john' # **
            ignore_casing: true
            start_index: 9
            end_index: 12
    
        # (if you censored word(s) is 'i love chicken' and want to replace ONLY the 'love' with 'hate')
        i love chicken:
            ignore_casing: true
            start_index: 2 # I want to start from the 2nd letter
            end_index: 6 # to the 6th
            replacement_string: 'HATE' # **
    
        i need help:
            ignore_casing: true
            start_index: 7 # I want to start from the 7th letter
            end_index: 11 # to the 11th
            replacement_string: 'HELP NOW'
    

    Features:
    - Replace words or phrases in chat

    Download (iReplace.jar):
    Size: 6kb
    File: [link]
    ---------------------------------------------------------------------------------------------------------------------------
    Like the post if i helped :)[/SPOILER]
     
    raymart23 and Scorpionvssub like this.
  5. Offline

    raymart23

    @Ruptur would be able to use at 1.8 ?
     
  6. Offline

    timtower Administrator Administrator Moderator

    Moved to Bukkit alternatives
     
  7. Offline

    Ruptur

Thread Status:
Not open for further replies.

Share This Page