SleeperGuard - Failed to compile: SleeperGuard.cs(229,50): error CS0117: RelationshipManager' does not contain a definition for Instance'
Please fix.
RelationshipManager' does not contain a definition for Instance'Fixed
Yeah got the same here too.
If you open the plugin .cs file in notepad find the section below:
if (!RelationshipManager.TeamsEnabled()) return false;
var playerTeam = RelationshipManager.Instance.FindPlayersTeam(playerID);
if (playerTeam == null) return false;
var friendTeam = RelationshipManager.Instance.FindPlayersTeam(friendID);
if (friendTeam == null) return false;
return playerTeam == friendTeam;You need to insert "Server" before Instance as below:
if (!RelationshipManager.TeamsEnabled()) return false;
var playerTeam = RelationshipManager.ServerInstance.FindPlayersTeam(playerID);
if (playerTeam == null) return false;
var friendTeam = RelationshipManager.ServerInstance.FindPlayersTeam(friendID);
if (friendTeam == null) return false;
return playerTeam == friendTeam; I've updated the plugin, should be fixed now!
Thank you!
Locked automatically