ClassiCube / MCGalaxy

A Minecraft Classic / ClassiCube server software
GNU General Public License v3.0
171 stars 80 forks source link

Un`/follow`ed players remains invisible #793

Open dflat2 opened 6 months ago

dflat2 commented 6 months ago

There seem to be a bug in the Unfollow method, causing unfollowed players to remain invisible from the operator who followed them.

https://github.com/ClassiCube/MCGalaxy/blob/c860f64c0e22d86f1716c57bfd76e91d1617dd68/MCGalaxy/Commands/Moderation/CmdFollow.cs#L51

p.following = "";

Player target = PlayerInfo.FindExact(p.following);

The target player is always null.