Making Specific Group Invisible To Others With Networking

Hi I'm creating a new plugin that hides specific group to everyone, excluded group members. Basically I'm trying to isolate groups.No one will hear or see players out of the group. I wrote a sample as you can see below. Other players vanish but they come back when I move in the game, so it doesn't work. I am waiting for your precious recommendations.

Group group = new Group(Net.sv.visibility, Net.sv.TakeUID());
                player.limitNetworking = true;

                player.net.subscriber.UnsubscribeAll();
                player.net.subscriber.Subscribe(group);
                player.net.SwitchGroup(group);

                player.SendNetworkGroupChange();
                player.SendNetworkUpdateImmediate();​

You will need to prevent them from being added back to their original network group. You can do this using harmony or by adding your own oxide hook.

Thank you so much, its really important for me. Can you give me an example for solution? What is harmony and how can I accomplish that by using oxide hook?

wXLxOgFUEnSjh1r.png 0x89A

You will need to prevent them from being added back to their original network group. You can do this using harmony or by adding your own oxide hook.

Actually my sample doesn't even work right now. I'm not sure my purpose needs further interference like using harmony. Its beyond my knowledge.But I feel like my code has some lacks. Does my code make sense? Should I add something? Or does it definitely need harmony to make it right? 

I can't remember the exact method you need to patch but you could look here to figure out how to use harmony.