Jump to content

defendable bases

Closed 1.2.12

Hello

I explain my problem.
I use the DeathNotes and Defendable Bases plugins which spam the chat with NPC death messages.
These NPCs have particular names (sledge, blazer, juggernaut).
Is there a way with ChatToNotification to target these messages in particular in DeathNotes and make them go to notifications, or even no longer display them, while keeping DeathNotes in the chat?
At worst I send all DeathNotes messages in the notifications but the two options "move or delete" would really be the best.
Thank you for your help.

Edited by Dad Frog

Share this comment


Link to comment

You can filter out any messages by placing a partial text in the config. Show me a screenshot of messages you want to convert so I can help you out with the config.

Share this comment


Link to comment

Here as an example I set for you three keywords of the bots to be converted to notifications if found, you can also just do "[DeathNotes]" if you want to convert all messages containing that keyword. The three examples I have below are set to show as "NotificationOnly", you can also set them as "Neither" if you want them not to show at all.

 

{
  "Version": {
    "Major": 1,
    "Minor": 2,
    "Patch": 12
  },
  "General settings": {
    "Can filter player messages?": false,
    "Recent notifications command": "n",
    "Show time (gametime, servertime, none)": "gametime"
  },
  "Server messages settings - 'say' command": {
    "Convert all server messages?": false,
    "Prefix": "[Server]",
    "Prefix color": "#FFB84C"
  },
  "Notification area settings": {
    "Time visible (in seconds)": 10,
    "Max # of notifications visible": 10,
    "Alternate color 1": "#212741",
    "Alternate color 2": "#303856",
    "Opacity": 70.0,
    "Width": 350.0,
    "Position (Top, TopLeft, TopRight, Left, Right, Center, Bottom, BottomLeft, BottomRight)": "TopRight",
    "X axis": 15.0,
    "Y axis": 15.0,
    "Single notification settings": {
      "Height": 20.0,
      "Font size": 11,
      "Text alignment (left, right, center)": "center",
      "Default text color (if not formatted)": "#ffffff"
    }
  },
  "Recent notifications modal settings": {
    "Primary color": "#212741",
    "Secondary color 1": "#18122B",
    "Secondary color 2": "#303856"
  },
  "Chat partial text to convert to notification": {
    "Sledge": {
      "Shows as? (NotificationOnly | ChatAndNotification | Neither)": "NotificationOnly",
      "Force Color": false,
      "Color": "#ffffff",
      "Enable Regex Formatting": false,
      "Advanced Formatting - Regex Pattern": "",
      "Advanced Formatting - Regex Replacement": ""
    },
    "Blazer": {
      "Shows as? (NotificationOnly | ChatAndNotification | Neither)": "NotificationOnly",
      "Force Color": false,
      "Color": "#ffffff",
      "Enable Regex Formatting": false,
      "Advanced Formatting - Regex Pattern": "",
      "Advanced Formatting - Regex Replacement": ""
    },
    "Juggernaut": {
      "Shows as? (NotificationOnly | ChatAndNotification | Neither)": "NotificationOnly",
      "Force Color": false,
      "Color": "#ffffff",
      "Enable Regex Formatting": false,
      "Advanced Formatting - Regex Pattern": "",
      "Advanced Formatting - Regex Replacement": ""
    }
  },
  "Regex filters (Advanced)": {}
}
Edited by beee

Share this comment


Link to comment

I'm sorry and sad but it doesn't work...
I put neather as an option and the messages show up in notifications.
To do another test I put ChatAndNotification but nothing is displayed in the chat.
FYI all DeathNotes messages go into notifications.

Is there an order to follow in the config, put the sledge and other before deathnotes?
Can I put my config here?

Share this comment


Link to comment

All you need to do is remove DeathNotes if you want to keep it in chat or place it at the end if you want to move it to notifications but remove the others. Order matters in this case. Attached a version with it at the end, let me know if that works out as you need.ChatToNotifications.json

Share this comment


Link to comment

It works perfectly!
It does exactly what I've been looking for for 2 months...
A big thank you to you beee for the time spent helping me and for your plugin 🙂

We can close the ticket.

  • Love 1

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.7k

Customers

Total customers served.

83k

Files Sold

Total number of files sold.

1.6m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.