So i have this kill message right here --- Death Messages for Reign of Kings | Oxide
how do i take out the part where it says if anybody kills an animal it says "username -- killed the server" how do i get rid of that?

Death Messages
Displays a server wide messages of deaths.
Total Downloads: 2,408 - First Release: May 23, 2015 - Last Update: Mar 8, 2018
- 5/5, 5 likes
-
-
-
-
PaiN updated Death Messages with a new update entry:
0.3
-
I am getting a crazy amount of errors. I will PM you with the log.
-
-
Try using the following, it should remove the errors. Worked for me
Code:if (e.KillingDamage.DamageTypes.ToString().Contains("Slash","Bash","Pierce","Projectile"))
Last edited by a moderator: Jan 15, 2016 -
-
Ah yea that was also something I added.
Code:bool server = deathEvent.KillingDamage.DamageSource.Owner.IsServer;
P.S. I mentioned including those damage types because certain damage types don't have an owner such as Fire/Falling/Impact. Those could potentially cause issues with NRE errors. -
damage might be needed but if it's a keg then it can cause issues since
-
PaiN updated Death Messages with a new update entry:
0.4
-
hey PaiN, thanx for the update!
do you mind starting a conversation with me ? i have some questions and i am looking for an experienced coder! -
-
Did you edit the plugin file ? -
This latest update made the plugin stop working, and it gave me a lot more errors. Eventually my server would not work until I removed it...
-
-
10:19 PM [Debug] at Oxide.Plugins.DeathMessages.OnEntityDeath (CodeHatch.Networking.Events.Entities.EntityDeathEvent e) [0x00000] in <filename unknown>:0
at Oxide.Plugins.DeathMessages.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
10:19 PM [Error] Failed to call hook 'OnEntityDeath' on plugin 'DeathMessages v0.4.0' (NullReferenceException: Object reference not set to an instance of an object)
10:19 PM [Debug] at Oxide.Plugins.DeathMessages.OnEntityDeath (CodeHatch.Networking.Events.Entities.EntityDeathEvent e) [0x00000] in <filename unknown>:0
at Oxide.Plugins.DeathMessages.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
10:19 PM [Error] Failed to call hook 'OnEntityDeath' on plugin 'DeathMessages v0.4.0' (NullReferenceException: Object reference not set to an instance of an object)
10:19 PM [Debug] at Oxide.Plugins.DeathMessages.OnEntityDeath (CodeHatch.Networking.Events.Entities.EntityDeathEvent e) [0x00000] in <filename unknown>:0
at Oxide.Plugins.DeathMessages.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0 -