mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-25 22:30:52 -04:00
Fix /team leave xyz - should just send a message, not make you leave the team
This commit is contained in:
parent
167b3f5f6d
commit
244146c8b1
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user