From 244146c8b120be722cc8de2b89c45c954d618625 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Mon, 31 Jul 2017 16:50:12 +1000 Subject: [PATCH] Fix /team leave xyz - should just send a message, not make you leave the team --- MCGalaxy/Commands/Fun/CmdTeam.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/MCGalaxy/Commands/Fun/CmdTeam.cs b/MCGalaxy/Commands/Fun/CmdTeam.cs index 38e0b8d78..9e714138c 100644 --- a/MCGalaxy/Commands/Fun/CmdTeam.cs +++ b/MCGalaxy/Commands/Fun/CmdTeam.cs @@ -165,6 +165,11 @@ namespace MCGalaxy.Commands.Fun { Team team = p.Game.Team; if (team == null) { Player.Message(p, "You need to be in a team first to leave one."); return; } + // handle /team leave me alone + if (args.Length > 1) { + team.Chat(p, args.Join(" ")); return; + } + team.Action(p, "left the team."); team.Remove(p.name); p.Game.Team = null;