Fix /team invite, then /team join, then /team leave, then doing /team join would still make you rejoin team

This commit is contained in:
UnknownShadow200 2018-01-03 09:02:57 +11:00
parent 58ed57bc6d
commit 0771ca1155

View File

@ -140,6 +140,7 @@ namespace MCGalaxy.Commands.Fun {
team.Members.Add(p.name);
team.Action(p, "joined the team.");
p.Game.Team = team;
p.Game.TeamInvite = null;
p.SetPrefix();
Team.SaveList();
}