On line 74:
configData.door = door.net.ID;
This should be:
configData.door = door.net.ID.Value;
Also unrelated to your error on line 58:
if (!permission.UserHasPermission(player.userID.ToString(), "MyPlugin.admin"))
You can avoid the ToString() by simply using:
if (!permission.UserHasPermission(player.UserIDString, "MyPlugin.admin"))
Also, line 65-66 you don't need to create references for out operators anymore:
Door door;
if (!DOORLOOC(player, out door))
You can just do:
if (!DOORLOOC(player, out var door))
Or:
if (!DOORLOOC(player, out Door door))
On line 82-89 you do not need the else return since it's a void and therefore does not return anything. You also have no code after the statement so your return here is redundant. You also need to fix your net.ID to access the value properly as we did above:
if (door.net.ID.Value == configData.door)
{
SendReply(player, "База админа нах пошёл");
}
else
{
return;
}
It should be:
if (door.net.ID.Value == configData.door)
{
SendReply(player, "База админа нах пошёл");
}