private void CmdRemoveGroup(IPlayer player, string cmd, string[] args) { if (args.Length != 2) { player.Reply(GetMessage("Syntax : removegroup", player.Id)); return; } IPlayer target = FindPlayer(args[0], player); if (target == null) { return; } PlayerInformation information = PlayerInformation.Get(target.Id); if (information == null || !information.Groups.Any(p => p.Value == args[1].ToLower())) { player.Reply(GetMessage("User Isn't In Group", player.Id).Replace("{target}", target.Name).Replace("{group}", args[1].ToLower())); return; } information.RemoveGroup(args[1].ToLower()); }