Damage ReportSolved

How i can disable the npc damage report message? I have all settings set false but message always shown.

                if (damageEntryType == DamageEntryType.NPC)
                {
                    if (config.Npc.Messages.NotifyKiller && IsParticipant(target.userID))
                    {
                        return true;
                    }

                    return config.Npc.Messages.NotifyChat;
                }

I've looked into this for you, and those messages are not shown when disabled

Thank you nivex! I also found the section and changed return true; to return false; and the message is gone. I was just unsure whether the plugin then generally still works properly. Is this what you mean or should i delete the whole section?

no, you shouldn't change the code. I was showing you that I checked the relevant code and confirmed it is working properly.

so a few things could explain your issue:

1. you don't have Broadcast Kill Notification To Killer set false like you think you do, or
2. it's set false elsewhere but not under Npc Settings, or
3. you did not reload the plugin, or
4. the config file was not saved after changes were made to it

  "Npc Settings": {
    "Messages": {
      "Broadcast Kill Notification To Chat": false,
      "Broadcast Kill Notification To Killer": false
    },
    "Enabled": true,
    "Damage Lock Threshold": 0.6,
    "Lock For X Seconds (0 = Forever)": 0,
    "Minimum Starting Health Requirement": 0.0,
    "Block Looting Only": true,
    "Rust Rewards RP": 0.0
  },​

I tested this and can confirm it is working 

This is my setting and i reload it sure i also had server restarts to check that.

"Npc Settings": {
    "Messages": {
      "Broadcast Kill Notification To Chat": false,
      "Broadcast Kill Notification To Killer": false
    },
    "Enabled": true,
    "Damage Lock Threshold": 0.2,
    "Lock For X Seconds (0 = Forever)": 0,
    "Minimum Starting Health Requirement": 0.0,
    "Block Looting Only": true
  },​


I noticed that i am missing last line rust rewards rp. I updated to latest version last month and perhaps i don´t get new config while that? I make fresh installation later to check this.

Merged post

That's weird. Version 2.1.0 was installed but the config was not renewed. After deleting and reinstalling it works now. Thank you for your time!
Locked automatically