seanbyrne88 updated RustNotifications with a new update entry:
0.
[DOUBLEPOST=1490807403][/DOUBLEPOST]Upload is failing, sit tight
RustNotifications
Rust plugin to notify when someone connects/disconnects from the server/when structures are attacked
Total Downloads: 4,155 - First Release: Sep 21, 2016 - Last Update: May 24, 2017
- 5/5, 5 likes
-
seanbyrne88 updated RustNotifications with a new update entry:
0
[DOUBLEPOST=1490807548][/DOUBLEPOST]Works now -
Plugin isnt creating a lang file. (i removed my old one to reset it). It isnt being created.
-
Code:
14:04 [Error] Failed to call hook 'OnEntityTakeDamage' on plugin 'RustNotifications v0.9.0' (JsonReaderException: After parsing a value an unexpected character was encountered: ". Path 'TestMessage', line 9, position 2.) 14:04 [Stacktrace] at Newtonsoft.Json.JsonTextReader.ParsePostValue () [0x00000] in <filename unknown>:0 at Newtonsoft.Json.JsonTextReader.Read () [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateDictionary (IDictionary dictionary, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonDictionaryContract contract, Newtonsoft.Json.Serialization.JsonProperty containerProperty, System.String id) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, Boolean checkAdditionalContent) [0x00000] in <filename unknown>:0 14:04 [Error] Failed to call hook 'OnEntityTakeDamage' on plugin 'RustNotifications v0.9.0' (JsonReaderException: After parsing a value an unexpected character was encountered: ". Path 'TestMessage', line 9, position 2.) 14:04 [Stacktrace] at Newtonsoft.Json.JsonTextReader.ParsePostValue () [0x00000] in <filename unknown>:0 at Newtonsoft.Json.JsonTextReader.Read () [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateDictionary (IDictionary dictionary, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonDictionaryContract contract, Newtonsoft.Json.Serialization.JsonProperty containerProperty, System.String id) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, Boolean checkAdditionalContent) [0x00000] in <filename unknown>:0 14:04 [Error] Failed to call hook 'OnEntityTakeDamage' on plugin 'RustNotifications v0.9.0' (JsonReaderException: After parsing a value an unexpected character was encountered: ". Path 'TestMessage', line 9, position 2.) 14:04 [Stacktrace] at Newtonsoft.Json.JsonTextReader.ParsePostValue () [0x00000] in <filename unknown>:0 at Newtonsoft.Json.JsonTextReader.Read () [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateDictionary (IDictionary dictionary, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonDictionaryContract contract, Newtonsoft.Json.Serialization.JsonProperty containerProperty, System.String id) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, Boolean checkAdditionalContent) [0x00000] in <filename unknown>:0 14:04 [Error] Failed to call hook 'OnEntityTakeDamage' on plugin 'RustNotifications v0.9.0' (JsonReaderException: After parsing a value an unexpected character was encountered: ". Path 'TestMessage', line 9, position 2.) 14:04 [Stacktrace] at Newtonsoft.Json.JsonTextReader.ParsePostValue () [0x00000] in <filename unknown>:0 at Newtonsoft.Json.JsonTextReader.Read () [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateDictionary (IDictionary dictionary, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonDictionaryContract contract, Newtonsoft.Json.Serialization.JsonProperty containerProperty, System.String id) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, Boolean checkAdditionalContent) [0x00000] in <filename unknown>:0 14:04 [Error] Failed to call hook 'OnEntityTakeDamage' on plugin 'RustNotifications v0.9.0' (JsonReaderException: After parsing a value an unexpected character was encountered: ". Path 'TestMessage', line 9, position 2.) 14:04 [Stacktrace] at Newtonsoft.Json.JsonTextReader.ParsePostValue () [0x00000] in <filename unknown>:0 at Newtonsoft.Json.JsonTextReader.Read () [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateDictionary (IDictionary dictionary, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonDictionaryContract contract, Newtonsoft.Json.Serialization.JsonProperty containerProperty, System.String id) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, Boolean checkAdditionalContent) [0x00000] in <filename unknown>:0 14:04 [Error] Failed to call hook 'OnEntityTakeDamage' on plugin 'RustNotifications v0.9.0' (JsonReaderException: After parsing a value an unexpected character was encountered: ". Path 'TestMessage', line 9, position 2.) 14:04 [Stacktrace] at Newtonsoft.Json.JsonTextReader.ParsePostValue () [0x00000] in <filename unknown>:0 at Newtonsoft.Json.JsonTextReader.Read () [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateDictionary (IDictionary dictionary, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonDictionaryContract contract, Newtonsoft.Json.Serialization.JsonProperty containerProperty, System.String id) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, Boolean checkAdditionalContent) [0x00000] in <filename unknown>:0 14:04 [Error] Failed to call hook 'OnEntityTakeDamage' on plugin 'RustNotifications v0.9.0' (JsonReaderException: After parsing a value an unexpected character was encountered: ". Path 'TestMessage', line 9, position 2.) 14:04 [Stacktrace] at Newtonsoft.Json.JsonTextReader.ParsePostValue () [0x00000] in <filename unknown>:0 at Newtonsoft.Json.JsonTextReader.Read () [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateDictionary (IDictionary dictionary, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonDictionaryContract contract, Newtonsoft.Json.Serialization.JsonProperty containerProperty, System.String id) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, Boolean checkAdditionalContent) [0x00000] in <filename unknown>:0 14:04 [Error] Failed to call hook 'OnEntityTakeDamage' on plugin 'RustNotifications v0.9.0' (JsonReaderException: After parsing a value an unexpected character was encountered: ". Path 'TestMessage', line 9, position 2.) 14:04 [Stacktrace] at Newtonsoft.Json.JsonTextReader.ParsePostValue () [0x00000] in <filename unknown>:0 at Newtonsoft.Json.JsonTextReader.Read () [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateDictionary (IDictionary dictionary, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonDictionaryContract contract, Newtonsoft.Json.Serialization.JsonProperty containerProperty, System.String id) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, Boolean checkAdditionalContent) [0x00000] in <filename unknown>:0 14:04 [Info] [NoDecay] NoDecay.OnEntityTakeDamage took 43.0025 ms to execute. 14:04 [Error] Failed to call hook 'OnEntityTakeDamage' on plugin 'RustNotifications v0.9.0' (JsonReaderException: After parsing a value an unexpected character was encountered: ". Path 'TestMessage', line 9, position 2.) 14:04 [Stacktrace] at Newtonsoft.Json.JsonTextReader.ParsePostValue () [0x00000] in <filename unknown>:0 at Newtonsoft.Json.JsonTextReader.Read () [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateDictionary (IDictionary dictionary, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonDictionaryContract contract, Newtonsoft.Json.Serialization.JsonProperty containerProperty, System.String id) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, Boolean checkAdditionalContent) [0x00000] in <filename unknown>:0 14:04 [Error] Failed to call hook 'OnEntityTakeDamage' on plugin 'RustNotifications v0.9.0' (JsonReaderException: After parsing a value an unexpected character was encountered: ". Path 'TestMessage', line 9, position 2.) 14:04 [Stacktrace] at Newtonsoft.Json.JsonTextReader.ParsePostValue () [0x00000] in <filename unknown>:0 at Newtonsoft.Json.JsonTextReader.Read () [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateDictionary (IDictionary dictionary, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonDictionaryContract contract, Newtonsoft.Json.Serialization.JsonProperty containerProperty, System.String id) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, Boolean checkAdditionalContent) [0x00000] in <filename unknown>:0 14:04 [Error] Failed to call hook 'OnEntityTakeDamage' on plugin 'RustNotifications v0.9.0' (JsonReaderException: After parsing a value an unexpected character was encountered: ". Path 'TestMessage', line 9, position 2.) 14:04 [Stacktrace] at Newtonsoft.Json.JsonTextReader.ParsePostValue () [0x00000] in <filename unknown>:0 at Newtonsoft.Json.JsonTextReader.Read () [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateDictionary (IDictionary dictionary, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonDictionaryContract contract, Newtonsoft.Json.Serialization.JsonProperty containerProperty, System.String id) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, Boolean checkAdditionalContent) [0x00000] in <filename unknown>:0 14:04 [Error] Failed to call hook 'OnPlayerDisconnected' on plugin 'RustNotifications v0.9.0' (JsonReaderException: After parsing a value an unexpected character was encountered: ". Path 'TestMessage', line 9, position 2.) 14:04 [Stacktrace] at Newtonsoft.Json.JsonTextReader.ParsePostValue () [0x00000] in <filename unknown>:0 at Newtonsoft.Json.JsonTextReader.Read () [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateDictionary (IDictionary dictionary, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonDictionaryContract contract, Newtonsoft.Json.Serialization.JsonProperty containerProperty, System.String id) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, Boolean checkAdditionalContent) [0x00000] in <filename unknown>:0
Code:{ "DiscordConfig": { "Active": false, "DoLinkSteamProfile": true, "DoNotifyWhenBaseAttacked": true, "DoNotifyWhenPlayerConnects": true, "DoNotifyWhenPlayerDisconnects": true, "NotificationCooldownInSeconds": 60, "ThresholdPercentageHealthRemaining": 0 }, "ServerConfig": { "Active": true, "DoNotifyWhenBaseAttacked": true, "NotificationCooldownInSeconds": 60, "ThresholdPercentageHealthRemaining": 100 }, "SlackConfig": { "Active": false, "DoLinkSteamProfile": true, "DoNotifyWhenBaseAttacked": true, "DoNotifyWhenPlayerConnects": true, "DoNotifyWhenPlayerDisconnects": true, "NotificationCooldownInSeconds": 60, "ThresholdPercentageHealthRemaining": 0 } }
-
-
Thanks, fixed
-
Code:
[RustNotifications] Tried to find player with ID 0 but they weren't in active or sleeping player list (09:13:32) | [RustNotifications] Tried to find player with ID 0 but they weren't in active or sleeping player list
Looks like its not getting the correct ID of the entityLast edited by a moderator: Mar 30, 2017 -
-
[DOUBLEPOST=1490915796][/DOUBLEPOST]Seems that its working for C4.
"loose has attacked a structure built by RSG | Beanz! with explosive.timed.deployed" -
Code:
ulong hitEntityOwnerID = info.HitEntity.OwnerID; if(hitEntityOwnerID = 0) { hitEntityOwnerID = entity.OwnerID; if (hitEntityOwnerID = 0) { return; } }
-
This is the code i have right now
Code:ulong hitEntityOwnerID = entity.OwnerID;
-
Code:
if(hitEntityOwnerID == 0) { hitEntityOwnerID = entity.OwnerID; } if (hitEntityOwnerID != 0) { string MessageText = lang.GetMessage("BaseAttackedMessageTemplate", this, player.UserIDString) .Replace("{Attacker}", player.displayName) .Replace("{Owner}", GetDisplayNameByID(hitEntityOwnerID)) .Replace("{Weapon}", info.WeaponPrefab.ShortPrefabName.Replace(".entity", "")) .Replace("{Damage}", info.damageTypes.Total().ToString()); //get structure's percentage health remaining for check against threshold int PercentHealthRemaining = (int)((entity.Health() / entity.MaxHealth()) * 100); if (IsPlayerActive(hitEntityOwnerID) && IsPlayerNotificationCooledDown(hitEntityOwnerID, NotificationType.ServerNotification, Settings.ServerConfig.NotificationCooldownInSeconds)) { if (PercentHealthRemaining <= Settings.ServerConfig.ThresholdPercentageHealthRemaining) { BasePlayer p = BasePlayer.activePlayerList.Find(x => x.userID == hitEntityOwnerID); PrintToChat(p, MessageText); } } //Slack if (Settings.SlackConfig.DoNotifyWhenBaseAttacked && IsPlayerNotificationCooledDown(hitEntityOwnerID, NotificationType.SlackNotification, Settings.SlackConfig.NotificationCooldownInSeconds)) { if (PercentHealthRemaining <= Settings.SlackConfig.ThresholdPercentageHealthRemaining) { SendSlackNotification(player, MessageText); } } //Discord if (Settings.DiscordConfig.DoNotifyWhenBaseAttacked && IsPlayerNotificationCooledDown(hitEntityOwnerID, NotificationType.DiscordNotification, Settings.DiscordConfig.NotificationCooldownInSeconds)) { if (PercentHealthRemaining <= Settings.DiscordConfig.ThresholdPercentageHealthRemaining) { SendDiscordNotification(player, MessageText); } } }
-
Ok, I'm doing some testing too right now and will upload a new version soon. Thanks for the help again!
-
seanbyrne88 updated RustNotifications with a new update entry:
0.9.1
-
Might be worth adding a filter for people hitting their own bases.
Code:if (hitEntityOwnerID == 0 || player.displayName == GetDisplayNameByID(hitEntityOwnerID)) { return; }
-
Thank you -
I got these errrors:
Code:Failed to call hook 'OnEntityTakeDamage' on plugin 'RustNotifications v0.9.1' (N ullReferenceException: Object reference not set to an instance of an object)
-
-
For me:
Code:RustNotifications was compiled successfully in 3695msLoaded plugin RustNotifications v0.9.1 by seanbyrne88Failed to call hook 'OnEntityTakeDamage' on plugin 'RustNotifications v0.9.1' (NullReferenceException: Object reference not set to an instance of an object) Failed to call hook 'OnEntityTakeDamage' on plugin 'RustNotifications v0.9.1' (NullReferenceException: Object reference not set to an instance of an object) Failed to call hook 'OnPlayerDisconnected' on plugin 'RustNotifications v0.9.1' (NullReferenceException: Object reference not set to an instance of an object) Failed to call hook 'OnEntityTakeDamage' on plugin 'RustNotifications v0.9.1' (NullReferenceException: Object reference not set to an instance of an object)
-
Yep, still errors.