♻️Replace Custom Messages

Replace the messages sent to the client, with whatever you like. You can also replace messages from other plugins, or bukkit.

You can decide whether or not to enable this features.

# ------------------
# Replace Custom Messages Settings
Replace_Custom_Messages:

  # --------- < ⚠ > ---------
  # The use of ProtocolLib is required for this feature.

  enabled: false

To use this function, the use of ProtocolLib is mandatory. If it already exists on your server, just activate it in the hooks. For more information click HERE.

Here you can set the messages you are going to replace.

  # If it is on "true" you can replace chat messages,
  # even from other plugins, with whatever you want.
  messages:
    # In this first example you are shown a classic message that occurs when you try to execute a command
    # without minecraft/bukkit permission. And it is replaced with the one set to "replace:"
    example_Message1:
      # In the target you just need to insert the string without the color code.
      # (If you enter colors in the control it may not correctly identify the target)
      target: 'I''m sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe that this is in error.'
      # Here you can put the text to be replaced with the color codes you want.
      replace: '&cYou cannot execute this command!'
    # In this example it replaces the default written of the unknown command with the one written below.
    example_Message2:
      target: 'Unknown command. Type "/help" for help.'
      replace: '&7Unknown command.'

This is the structure of the message that will be replaced.

  messages:
    <messageName>:
      target: <TextThatMustBeReplaced>
      replace: <TextReplaced>

This is where the text will go and will be replaced later.

  messages:
    <messageName>:
      target: <TextThatMustBeReplaced>

The text must not contain colors! You must write it respecting the characters, including case sensitive.

Here you will have to put the replaced message.

  messages:
    <messageName>:
      target: <TextThatMustBeReplaced>
      replace: <TextReplaced>

In the text that will be replaced, you will be able to use colors, symbols, etc..

Last updated