Get this error in the console when trying to load this plugin.
Error while compiling: ChatPrefix.cs(302,38): error CS0117: `RelationshipManager' does not contain a definition for `Instance'
Get this error in the console when trying to load this plugin.
Error while compiling: ChatPrefix.cs(302,38): error CS0117: `RelationshipManager' does not contain a definition for `Instance'
Fixed it.
Lines 298 and 299 in the .cs previously said
if (!RelationshipManager.Instance.playerToTeam.TryGetValue(ply1Id, out t1)) return false;
if (!RelationshipManager.Instance.playerToTeam.TryGetValue(ply2Id, out t2)) return false;
Changing to this fixed it.
if (!RelationshipManager.ServerInstance.playerToTeam.TryGetValue(ply1Id, out t1)) return false;
if (!RelationshipManager.ServerInstance.playerToTeam.TryGetValue(ply2Id, out t2)) return false;
Just added Server in front of instance and it fixed. Something must of changed in the last Rust update.
This is because there was something changed in the rust update
fix will be pushed soon im currently in Hospital
Also finding that the prefixes don't stay. I'll restart the plugin, reconnect, get the prefix for a couple minutes, then it's just gone and have to repeat
fix will be pushed soon