Occasional issues with the IsInvisible API.

In the Vanish Status plugin, I am using your API method IsInvisible to determine whether a player is invisible. However, there are instances where it returns true for players who are visible, leading to the display "You are invisible" in their status bars.

private bool IsInvisible(BasePlayer player) => Vanish != null && (bool)Vanish.Call("IsInvisible", player);
private void SendBar(BasePlayer player)
{
	if (player == null || player.IsNpc || !player.IsConnected || !IsInvisible(player)) return;
	*Sending Status bar*
}

Is it possible to create a new API method that checks a player in the _hiddenPlayers list?

private bool IsInvisible(BasePlayer player) => player?._limitedNetworking ?? false;

like this:

private bool IsInvisible(BasePlayer player) => _hiddenPlayers.Contains(player);

P.S. If you want I can provide access to my plugin.

Hello again. Could you please add another API method IsInvisible2, which will check in _hiddenPlayers? Or add a new hook OnVanishDisappeared, which will be called at the end of the disappearance method, when the player's _limitedNetworking is already set to true. It’s just that your hook OnVanishDisappear is called at the beginning of the method, before the player becomes invisible

private bool IsInvisible2(BasePlayer player) => _hiddenPlayers.Contains(player.userID);

After almost a year of waiting, this topic is no longer relevant. Thank you for your cooperation...